[llvm] r190602 - [LTO] Fix the LTO tool, after my API breakage.
Joey Gouly
joey.gouly at arm.com
Thu Sep 12 05:55:30 PDT 2013
Author: joey
Date: Thu Sep 12 07:55:29 2013
New Revision: 190602
URL: http://llvm.org/viewvc/llvm-project?rev=190602&view=rev
Log:
[LTO] Fix the LTO tool, after my API breakage.
Thanks to Zonr Chang!
Modified:
llvm/trunk/tools/lto/LTOModule.cpp
Modified: llvm/trunk/tools/lto/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOModule.cpp?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOModule.cpp (original)
+++ llvm/trunk/tools/lto/LTOModule.cpp Thu Sep 12 07:55:29 2013
@@ -21,6 +21,7 @@
#include "llvm/IR/Module.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
+#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
@@ -813,11 +814,12 @@ bool LTOModule::addAsmGlobalSymbols(std:
_context, *Streamer,
*_target->getMCAsmInfo()));
const Target &T = _target->getTarget();
+ OwningPtr<MCInstrInfo> MCII(T.createMCInstrInfo());
OwningPtr<MCSubtargetInfo>
STI(T.createMCSubtargetInfo(_target->getTargetTriple(),
_target->getTargetCPU(),
_target->getTargetFeatureString()));
- OwningPtr<MCTargetAsmParser> TAP(T.createMCAsmParser(*STI, *Parser.get()));
+ OwningPtr<MCTargetAsmParser> TAP(T.createMCAsmParser(*STI, *Parser.get(), *MCII));
if (!TAP) {
errMsg = "target " + std::string(T.getName()) +
" does not define AsmParser.";
More information about the llvm-commits
mailing list