Change how symbol sizes are handled in lib/Object.
[oota-llvm.git] / lib / Object / Object.cpp
index 85f243675efc6667f3744df16edaeb39823a81f0..42da2e4c33e3c7ae3a8e3dda469cec1afd91326e 100644 (file)
@@ -187,7 +187,7 @@ uint64_t LLVMGetSymbolAddress(LLVMSymbolIteratorRef SI) {
 }
 
 uint64_t LLVMGetSymbolSize(LLVMSymbolIteratorRef SI) {
-  return (*unwrap(SI))->getSize();
+  return (*unwrap(SI))->getCommonSize();
 }
 
 // RelocationRef accessors