Skip to content

Commit

Permalink
Update for llvm commit r233648.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233649 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed Mar 31, 2015
1 parent 14627bb commit 1000c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Parse/ParseStmtAsm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
TheTarget->createMCAsmParser(*STI, *Parser, *MII, MCOptions));

std::unique_ptr<llvm::MCInstPrinter> IP(
TheTarget->createMCInstPrinter(1, *MAI, *MII, *MRI, *STI));
TheTarget->createMCInstPrinter(llvm::Triple(TT), 1, *MAI, *MII, *MRI));

// Change to the Intel dialect.
Parser->setAssemblerDialect(1);
Expand Down
5 changes: 2 additions & 3 deletions tools/driver/cc1as_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,8 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,

// FIXME: There is a bit of code duplication with addPassesToEmitFile.
if (Opts.OutputType == AssemblerInvocation::FT_Asm) {
MCInstPrinter *IP =
TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI, *MCII, *MRI,
*STI);
MCInstPrinter *IP = TheTarget->createMCInstPrinter(
llvm::Triple(Opts.Triple), Opts.OutputAsmVariant, *MAI, *MCII, *MRI);
MCCodeEmitter *CE = nullptr;
MCAsmBackend *MAB = nullptr;
if (Opts.ShowEncoding) {
Expand Down

0 comments on commit 1000c76

Please sign in to comment.