diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-07-14 23:50:31 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-14 23:50:31 +0000 |
| commit | 1705ab00ab5c9cd43924e24ef440dabda4e5ab60 (patch) | |
| tree | 56e314311c0564eab98c8375d52ad6ee0b4fb881 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
| parent | 82432f7edf2d089bc947e3b3d2e3d4419d3c4a1f (diff) | |
| download | llvm-1705ab00ab5c9cd43924e24ef440dabda4e5ab60.zip llvm-1705ab00ab5c9cd43924e24ef440dabda4e5ab60.tar.gz llvm-1705ab00ab5c9cd43924e24ef440dabda4e5ab60.tar.bz2 | |
Rename createAsmInfo to createMCAsmInfo and move registration code to MCTargetDesc to prepare for next round of changes.
llvm-svn: 135219
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
| -rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index bb80ed2..b47c04e 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -174,7 +174,7 @@ static void DisassembleInput(const StringRef &Filename) { outs() << "Disassembly of section " << name << ":\n\n"; // Set up disassembler. - OwningPtr<const MCAsmInfo> AsmInfo(TheTarget->createAsmInfo(TripleName)); + OwningPtr<const MCAsmInfo> AsmInfo(TheTarget->createMCAsmInfo(TripleName)); if (!AsmInfo) { errs() << "error: no assembly info for target " << TripleName << "\n"; @@ -236,6 +236,7 @@ int main(int argc, char **argv) { llvm::InitializeAllTargetInfos(); // FIXME: We shouldn't need to initialize the Target(Machine)s. llvm::InitializeAllTargets(); + llvm::InitializeAllMCAsmInfos(); llvm::InitializeAllAsmPrinters(); llvm::InitializeAllAsmParsers(); llvm::InitializeAllDisassemblers(); |
