summaryrefslogtreecommitdiff
path: root/lib/DebugInfo
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-09 02:45:05 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-09 02:45:05 +0000
commit2af949ddddfaf2feb4a446c754e09d2d8c207ce4 (patch)
tree0bf7064536880cee26f9b98015c23b7365c867c6 /lib/DebugInfo
parent96a05b3074e8633db936d6ba337a0d2bd6a7dd95 (diff)
downloadllvm-2af949ddddfaf2feb4a446c754e09d2d8c207ce4.tar.gz
llvm-2af949ddddfaf2feb4a446c754e09d2d8c207ce4.tar.bz2
llvm-2af949ddddfaf2feb4a446c754e09d2d8c207ce4.tar.xz
[Object, DebugInfo] Make DWARFContext BE-aware.
test/DebugInfo/member-pointers.ll would not fail in targetting BE any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r--lib/DebugInfo/DWARFContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp
index d6d9fcf3ea..247ee5b357 100644
--- a/lib/DebugInfo/DWARFContext.cpp
+++ b/lib/DebugInfo/DWARFContext.cpp
@@ -352,7 +352,7 @@ DIInliningInfo DWARFContext::getInliningInfoForAddress(uint64_t Address,
}
DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile *Obj) :
- IsLittleEndian(true /* FIXME */) {
+ IsLittleEndian(Obj->isLittleEndian()) {
error_code ec;
for (object::section_iterator i = Obj->begin_sections(),
e = Obj->end_sections();