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 /tools/edis | |
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 'tools/edis')
-rw-r--r-- | tools/edis/EDDisassembler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/edis/EDDisassembler.cpp b/tools/edis/EDDisassembler.cpp index 83505c3..dc2ed3e 100644 --- a/tools/edis/EDDisassembler.cpp +++ b/tools/edis/EDDisassembler.cpp @@ -365,7 +365,8 @@ int EDDisassembler::parseInst(SmallVectorImpl<MCParsedAsmOperand*> &operands, OwningPtr<MCAsmParser> genericParser(createMCAsmParser(*Tgt, sourceMgr, context, *streamer, *AsmInfo)); - OwningPtr<TargetAsmParser> TargetParser(Tgt->createAsmParser(*genericParser)); + OwningPtr<TargetAsmParser> TargetParser(Tgt->createAsmParser(*genericParser, + *TargetMachine)); AsmToken OpcodeToken = genericParser->Lex(); AsmToken NextToken = genericParser->Lex(); // consume next token, because specificParser expects us to |