diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-16 18:33:49 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-16 18:33:49 +0000 |
commit | 1b84cce77f8bccc905b4800927ce9016f76c1c40 (patch) | |
tree | 7db7299c1842e94918a88eb206bdc2488b7312e8 /tools | |
parent | ac29c0af3da1bc1da414899a78ffb0a2360f8cda (diff) | |
download | external_llvm-1b84cce77f8bccc905b4800927ce9016f76c1c40.zip external_llvm-1b84cce77f8bccc905b4800927ce9016f76c1c40.tar.gz external_llvm-1b84cce77f8bccc905b4800927ce9016f76c1c40.tar.bz2 |
Remove unused Target argument from AsmParser construction methods.
The argument is unused, and is a layering violation in any case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 4 | ||||
-rw-r--r-- | tools/lto/LTOModule.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index f13229d..429699b 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -413,8 +413,8 @@ static int AssembleInput(const char *ProgName) { Str.reset(createLoggingStreamer(Str.take(), errs())); } - OwningPtr<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx, - *Str.get(), *MAI)); + OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Ctx, + *Str.get(), *MAI)); OwningPtr<MCTargetAsmParser> TAP(TheTarget->createMCAsmParser(*STI, *Parser)); if (!TAP) { errs() << ProgName diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index a263423..6af6ddc 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -619,7 +619,7 @@ bool LTOModule::addAsmGlobalSymbols(MCContext &Context) { MemoryBuffer *Buffer = MemoryBuffer::getMemBuffer(inlineAsm); SourceMgr SrcMgr; SrcMgr.AddNewSourceBuffer(Buffer, SMLoc()); - OwningPtr<MCAsmParser> Parser(createMCAsmParser(_target->getTarget(), SrcMgr, + OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr, Context, *Streamer, *_target->getMCAsmInfo())); OwningPtr<MCSubtargetInfo> STI(_target->getTarget(). |