diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-07-19 00:33:49 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-19 00:33:49 +0000 |
commit | d73ada7d24832bc2a4c3965b8f00ffd951341acf (patch) | |
tree | b912bca0cfff8ecca49c39d337eddaadf61834ad /lib/Target/ARM | |
parent | 0261243f6e6cbeb12f7d66657964f9b6508c2328 (diff) | |
download | external_llvm-d73ada7d24832bc2a4c3965b8f00ffd951341acf.zip external_llvm-d73ada7d24832bc2a4c3965b8f00ffd951341acf.tar.gz external_llvm-d73ada7d24832bc2a4c3965b8f00ffd951341acf.tar.bz2 |
Target: Give the TargetAsmParser access to the TargetMachine.
- Unfortunate, but necessary for now to handle subtarget instruction matching. Eventually we should factor out the lower level target machine information so we don't need to do this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 4b08324..580ef67 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -37,6 +37,7 @@ enum ShiftType { class ARMAsmParser : public TargetAsmParser { MCAsmParser &Parser; + TargetMachine &TM; private: MCAsmParser &getParser() const { return Parser; } @@ -94,8 +95,8 @@ private: public: - ARMAsmParser(const Target &T, MCAsmParser &_Parser) - : TargetAsmParser(T), Parser(_Parser) {} + ARMAsmParser(const Target &T, MCAsmParser &_Parser, TargetMachine &_TM) + : TargetAsmParser(T), Parser(_Parser), TM(_TM) {} virtual bool ParseInstruction(StringRef Name, SMLoc NameLoc, SmallVectorImpl<MCParsedAsmOperand*> &Operands); |