diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-07-27 01:12:23 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-07-27 01:12:23 +0000 |
commit | c169b8798fc7492f447fba6e853ae55ae799d29c (patch) | |
tree | fc3ab512d3193c9b40d4f69f8575a713e6841c84 | |
parent | 0f3e0b0292f9919a6d8718c2b01c014ee7c26920 (diff) | |
download | llvm-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-x | llvm/lib/Target/X86/X86AsmPrinter.h | 4 |
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); } |