aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-07-27 01:12:23 +0000
committerJim Laskey <jlaskey@mac.com>2006-07-27 01:12:23 +0000
commitc169b8798fc7492f447fba6e853ae55ae799d29c (patch)
treefc3ab512d3193c9b40d4f69f8575a713e6841c84
parent0f3e0b0292f9919a6d8718c2b01c014ee7c26920 (diff)
downloadllvm-c169b8798fc7492f447fba6e853ae55ae799d29c.zip
llvm-c169b8798fc7492f447fba6e853ae55ae799d29c.tar.gz
llvm-c169b8798fc7492f447fba6e853ae55ae799d29c.tar.bz2
Prevent creation of MachineDebugInfo for intel unless it is darwin. RC842.
llvm-svn: 29317
-rwxr-xr-xllvm/lib/Target/X86/X86AsmPrinter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.h b/llvm/lib/Target/X86/X86AsmPrinter.h
index 272c880..f4564c6 100755
--- a/llvm/lib/Target/X86/X86AsmPrinter.h
+++ b/llvm/lib/Target/X86/X86AsmPrinter.h
@@ -64,7 +64,9 @@ struct X86SharedAsmPrinter : public AsmPrinter {
void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
- AU.addRequired<MachineDebugInfo>();
+ if (Subtarget->TargetType == X86Subtarget::isDarwin) {
+ AU.addRequired<MachineDebugInfo>();
+ }
MachineFunctionPass::getAnalysisUsage(AU);
}