summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-03-15 18:33:46 +0000
committerDevang Patel <dpatel@apple.com>2010-03-15 18:33:46 +0000
commita3e9c9ca7becdc621410f76c6c18495412eaf7b4 (patch)
tree41a5a1e859813fbe90a5b79198edaef44de8c87a /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentf3bc99dd564c739864a2a307c18254a698efcbf9 (diff)
downloadbcm5719-llvm-a3e9c9ca7becdc621410f76c6c18495412eaf7b4.tar.gz
bcm5719-llvm-a3e9c9ca7becdc621410f76c6c18495412eaf7b4.zip
Emit dwarf variable info communicated by code generator through DBG_VALUE machine instructions.
This is a work in progress. llvm-svn: 98556
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index d1f5afb7fd2..63b05365d1c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1309,6 +1309,8 @@ void AsmPrinter::processDebugLoc(const MachineInstr *MI,
if (!MAI || !DW || !MAI->doesSupportDebugInformation()
|| !DW->ShouldEmitDwarfDebug())
return;
+ if (MI->getOpcode() == TargetOpcode::DBG_VALUE)
+ return;
DebugLoc DL = MI->getDebugLoc();
if (DL.isUnknown())
return;
OpenPOWER on IntegriCloud