diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-26 00:24:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-26 00:24:13 +0000 |
commit | 94b9550a32d189704a8eae55505edf62662c0534 (patch) | |
tree | 5d1353ef699f1f47f8ffad6bbaa926501d53946c /tools | |
parent | fcf5a8341f522d95ecbe5af8b1214bf1ea8931dd (diff) | |
download | external_llvm-94b9550a32d189704a8eae55505edf62662c0534.zip external_llvm-94b9550a32d189704a8eae55505edf62662c0534.tar.gz external_llvm-94b9550a32d189704a8eae55505edf62662c0534.tar.bz2 |
Rename TargetAsmParser to MCTargetAsmParser and TargetAsmLexer to MCTargetAsmLexer; rename createAsmLexer to createMCAsmLexer and createAsmParser to createMCAsmParser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136027 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 | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index 0a48c69..90d0707 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -24,8 +24,8 @@ #include "llvm/MC/MCSectionMachO.h" #include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCSubtargetInfo.h" +#include "llvm/MC/MCTargetAsmParser.h" #include "llvm/MC/SubtargetFeature.h" -#include "llvm/MC/TargetAsmParser.h" #include "llvm/Target/TargetRegistry.h" #include "llvm/Target/TargetSelect.h" #include "llvm/ADT/OwningPtr.h" @@ -394,7 +394,7 @@ static int AssembleInput(const char *ProgName) { OwningPtr<MCAsmParser> Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx, *Str.get(), *MAI)); - OwningPtr<TargetAsmParser> TAP(TheTarget->createAsmParser(*STI, *Parser)); + OwningPtr<MCTargetAsmParser> TAP(TheTarget->createMCAsmParser(*STI, *Parser)); if (!TAP) { errs() << ProgName << ": error: this target does not support assembly parsing.\n"; diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index 003c089..a263423 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -38,7 +38,7 @@ #include "llvm/MC/MCSubtargetInfo.h" #include "llvm/MC/MCSymbol.h" #include "llvm/MC/SubtargetFeature.h" -#include "llvm/MC/TargetAsmParser.h" +#include "llvm/MC/MCTargetAsmParser.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetRegistry.h" @@ -626,8 +626,8 @@ bool LTOModule::addAsmGlobalSymbols(MCContext &Context) { createMCSubtargetInfo(_target->getTargetTriple(), _target->getTargetCPU(), _target->getTargetFeatureString())); - OwningPtr<TargetAsmParser> - TAP(_target->getTarget().createAsmParser(*STI, *Parser.get())); + OwningPtr<MCTargetAsmParser> + TAP(_target->getTarget().createMCAsmParser(*STI, *Parser.get())); Parser->setTargetParser(*TAP); int Res = Parser->Run(false); if (Res) |