diff options
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index fd5bcb268e..dcf27ac175 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -94,10 +94,12 @@ X86TargetMachine::X86TargetMachine(const Module &M, IntrinsicLowering *IL) } -// addPassesToEmitAssembly - We currently use all of the same passes as the JIT +// addPassesToEmitFile - We currently use all of the same passes as the JIT // does to emit statically compiled machine code. -bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM, - std::ostream &Out) { +bool X86TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out, + CodeGenFileType FileType) { + if (FileType != TargetMachine::AssemblyFile) return true; + // FIXME: Implement efficient support for garbage collection intrinsics. PM.add(createLowerGCPass()); |