diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-06 19:45:57 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-06 19:45:57 +0000 |
commit | 24c9db6f367a6143be953b1b9a910aab2141fdff (patch) | |
tree | a1a9fba61181651886ef8b155d99027a13814d3b /tools/driver/cc1as_main.cpp | |
parent | 742352a3984aeef9ecf911be23e673e97b34595f (diff) |
createMCInstPrinter doesn't need TargetMachine anymore.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/cc1as_main.cpp')
-rw-r--r-- | tools/driver/cc1as_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index c821185832..c082fdaa01 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -282,7 +282,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) { // FIXME: There is a bit of code duplication with addPassesToEmitFile. if (Opts.OutputType == AssemblerInvocation::FT_Asm) { MCInstPrinter *IP = - TheTarget->createMCInstPrinter(*TM, Opts.OutputAsmVariant, *MAI); + TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI); MCCodeEmitter *CE = 0; TargetAsmBackend *TAB = 0; if (Opts.ShowEncoding) { |