summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-08-28 23:24:31 +0000
committerDevang Patel <dpatel@apple.com>2009-08-28 23:24:31 +0000
commit80ae34974b2f881b68a30034d47af58a417ba44b (patch)
treefddf00b6e4a26e6e988a4af83a5d4f317579850c /llvm/lib/CodeGen/MachineFunction.cpp
parentbeefdc894898ad1d372a2eabb1c17d7780aa8645 (diff)
downloadbcm5719-llvm-80ae34974b2f881b68a30034d47af58a417ba44b.tar.gz
bcm5719-llvm-80ae34974b2f881b68a30034d47af58a417ba44b.zip
Reapply 79977.
Use MDNodes to encode debug info in llvm IR. llvm-svn: 80406
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 25dfa6e1ba5..14ba36011f0 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -333,7 +333,7 @@ unsigned MachineFunction::addLiveIn(unsigned PReg,
/// getOrCreateDebugLocID - Look up the DebugLocTuple index with the given
/// source file, line, and column. If none currently exists, create a new
/// DebugLocTuple, and insert it into the DebugIdMap.
-unsigned MachineFunction::getOrCreateDebugLocID(GlobalVariable *CompileUnit,
+unsigned MachineFunction::getOrCreateDebugLocID(MDNode *CompileUnit,
unsigned Line, unsigned Col) {
DebugLocTuple Tuple(CompileUnit, Line, Col);
DenseMap<DebugLocTuple, unsigned>::iterator II
OpenPOWER on IntegriCloud