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/ARM/AsmParser | |
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/ARM/AsmParser')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index c59ca64..e315d16 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -277,7 +277,7 @@ public: MCAsmParserExtension::Initialize(_Parser); // Cache the MCRegisterInfo. - MRI = &getContext().getRegisterInfo(); + MRI = getContext().getRegisterInfo(); // Initialize the set of available features. setAvailableFeatures(ComputeAvailableFeatures(STI.getFeatureBits())); @@ -7851,8 +7851,8 @@ bool ARMAsmParser::parseDirectiveARM(SMLoc L) { /// parseDirectiveThumbFunc /// ::= .thumbfunc symbol_name bool ARMAsmParser::parseDirectiveThumbFunc(SMLoc L) { - const MCAsmInfo &MAI = getParser().getStreamer().getContext().getAsmInfo(); - bool isMachO = MAI.hasSubsectionsViaSymbols(); + const MCAsmInfo *MAI = getParser().getStreamer().getContext().getAsmInfo(); + bool isMachO = MAI->hasSubsectionsViaSymbols(); StringRef Name; bool needFuncName = true; |