summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DIContext.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-11-12 21:40:38 +0000
committerEric Christopher <echristo@gmail.com>2012-11-12 21:40:38 +0000
commit7370b55262f0878897a8fd3f1ecc4fd1a6fd8f65 (patch)
tree038b513cf50de39ed0b22fcbe9010b59a38abf6e /llvm/lib/DebugInfo/DIContext.cpp
parenta0e5e54e8df318f1f2fd5c2a1811ec67a08eb484 (diff)
downloadbcm5719-llvm-7370b55262f0878897a8fd3f1ecc4fd1a6fd8f65.tar.gz
bcm5719-llvm-7370b55262f0878897a8fd3f1ecc4fd1a6fd8f65.zip
Rewrite DIContext interface to take an object. Update all callers.
llvm-svn: 167757
Diffstat (limited to 'llvm/lib/DebugInfo/DIContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DIContext.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/llvm/lib/DebugInfo/DIContext.cpp b/llvm/lib/DebugInfo/DIContext.cpp
index 6484abcfe82..49a44097d3e 100644
--- a/llvm/lib/DebugInfo/DIContext.cpp
+++ b/llvm/lib/DebugInfo/DIContext.cpp
@@ -13,15 +13,6 @@ using namespace llvm;
DIContext::~DIContext() {}
-DIContext *DIContext::getDWARFContext(bool isLittleEndian,
- StringRef infoSection,
- StringRef abbrevSection,
- StringRef aRangeSection,
- StringRef lineSection,
- StringRef stringSection,
- StringRef rangeSection,
- const RelocAddrMap *Map) {
- return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection,
- aRangeSection, lineSection, stringSection,
- rangeSection, Map);
+DIContext *DIContext::getDWARFContext(object::ObjectFile *Obj) {
+ return new DWARFContextInMemory(Obj);
}
OpenPOWER on IntegriCloud