summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-18 19:31:59 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-18 19:31:59 +0000
commit097be9f63c36e466fbbbf7a32fdbefe5d61298a5 (patch)
tree98943d47423c4cf2190b457f14d115a0d30e41bf /llvm/lib/Object/COFFObjectFile.cpp
parentf5df537d2619d3b22228161453d5d836b5deab32 (diff)
downloadbcm5719-llvm-097be9f63c36e466fbbbf7a32fdbefe5d61298a5.tar.gz
bcm5719-llvm-097be9f63c36e466fbbbf7a32fdbefe5d61298a5.zip
Object/COFF: Change type from a struct to a uint16_t. The struct would be
incorrect for bigendian systems. llvm-svn: 142403
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 13356520d7b..e52a31f67f9 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -147,7 +147,7 @@ error_code COFFObjectFile::getSymbolType(DataRefImpl Symb,
symb->SectionNumber == COFF::IMAGE_SYM_UNDEFINED) {
Result = SymbolRef::ST_External;
} else {
- if (symb->Type.ComplexType == COFF::IMAGE_SYM_DTYPE_FUNCTION) {
+ if (symb->getComplexType() == COFF::IMAGE_SYM_DTYPE_FUNCTION) {
Result = SymbolRef::ST_Function;
} else {
char Type;
OpenPOWER on IntegriCloud