diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-06-18 07:20:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-06-18 07:20:20 +0000 |
commit | 99cb622041a0839c7dfcf0263c5102a305a0fdb5 (patch) | |
tree | 7890d4314940f3ef004cd8c2877343f14620a69a /lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp | |
parent | c4e6b540f05932eea37ca10b6c1fded522777954 (diff) | |
download | external_llvm-99cb622041a0839c7dfcf0263c5102a305a0fdb5.zip external_llvm-99cb622041a0839c7dfcf0263c5102a305a0fdb5.tar.gz external_llvm-99cb622041a0839c7dfcf0263c5102a305a0fdb5.tar.bz2 |
Use pointers to the MCAsmInfo and MCRegInfo.
Someone may want to do something crazy, like replace these objects if they
change or something.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp')
-rw-r--r-- | lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp index 016af71..3e450fd 100644 --- a/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp +++ b/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp @@ -53,7 +53,7 @@ public: } unsigned GetX86RegNum(const MCOperand &MO) const { - return Ctx.getRegisterInfo().getEncodingValue(MO.getReg()) & 0x7; + return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()) & 0x7; } // On regular x86, both XMM0-XMM7 and XMM8-XMM15 are encoded in the range |