summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-03-31 00:10:04 +0000
committerEric Christopher <echristo@gmail.com>2015-03-31 00:10:04 +0000
commitf8019408dc0167c1227e51b3d54427db062c3e63 (patch)
treeb2d834308f5ba3a961fe791afcef46e4fe54baee /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent430563195fda65aa5394836e73501ff1e234658b (diff)
downloadbcm5719-llvm-f8019408dc0167c1227e51b3d54427db062c3e63.tar.gz
bcm5719-llvm-f8019408dc0167c1227e51b3d54427db062c3e63.zip
Replace the MCSubtargetInfo parameter with a Triple when creating
an MCInstPrinter. Update all callers and use where we wanted a Triple previously. llvm-svn: 233648
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 30d4e217fba..83f135bca1a 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -274,7 +274,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
int AsmPrinterVariant = AsmInfo->getAssemblerDialect();
std::unique_ptr<MCInstPrinter> IP(TheTarget->createMCInstPrinter(
- AsmPrinterVariant, *AsmInfo, *MII, *MRI, *STI));
+ Triple(TripleName), AsmPrinterVariant, *AsmInfo, *MII, *MRI));
if (!IP) {
errs() << "error: no instruction printer for target " << TripleName
<< '\n';
OpenPOWER on IntegriCloud