summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DIContext.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-11-07 23:22:07 +0000
committerEric Christopher <echristo@gmail.com>2012-11-07 23:22:07 +0000
commit7c678de8614720999d1346b89e73480e4bdc6f87 (patch)
treebba75fe39b0ea5aa51f888c990e6ed915cff6bd9 /llvm/lib/DebugInfo/DIContext.cpp
parent84afacd253b4c4da7691153c3f0d07237cc0b21d (diff)
downloadbcm5719-llvm-7c678de8614720999d1346b89e73480e4bdc6f87.tar.gz
bcm5719-llvm-7c678de8614720999d1346b89e73480e4bdc6f87.zip
Add a relocation visitor to lib object. This works via caching relocated
values in a map that can be passed to consumers. Add a testcase that ensures this works for llvm-dwarfdump. llvm-svn: 167558
Diffstat (limited to 'llvm/lib/DebugInfo/DIContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DIContext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DIContext.cpp b/llvm/lib/DebugInfo/DIContext.cpp
index ead57f97159..691a92c392c 100644
--- a/llvm/lib/DebugInfo/DIContext.cpp
+++ b/llvm/lib/DebugInfo/DIContext.cpp
@@ -19,8 +19,9 @@ DIContext *DIContext::getDWARFContext(bool isLittleEndian,
StringRef aRangeSection,
StringRef lineSection,
StringRef stringSection,
- StringRef rangeSection) {
+ StringRef rangeSection,
+ const RelocAddrMap &Map) {
return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection,
aRangeSection, lineSection, stringSection,
- rangeSection);
+ rangeSection, Map);
}
OpenPOWER on IntegriCloud