From 7426771280164bf3829a56af23fcc381c4383423 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 21 Apr 2014 13:45:32 +0000 Subject: Convert getFileOffset to getOffset and move it to its only user. We normally don't drop functions from the C API's, but in this case I think we can: * The old implementation of getFileOffset was fairly broken * The introduction of LLVMGetSymbolFileOffset was itself a C api breaking change as it removed LLVMGetSymbolOffset. * It is an incredibly specialized use case. The only reason MCJIT needs it is because of its odd position of being a dynamic linker of .o files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206750 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-c-test/object.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/llvm-c-test') diff --git a/tools/llvm-c-test/object.c b/tools/llvm-c-test/object.c index 2792928654..a5421d9066 100644 --- a/tools/llvm-c-test/object.c +++ b/tools/llvm-c-test/object.c @@ -72,9 +72,8 @@ int object_list_symbols(void) { while (!LLVMIsSymbolIteratorAtEnd(O, sym)) { LLVMMoveToContainingSection(sect, sym); - printf("%s @0x%08" PRIx64 "/0x%08" PRIx64 " +%" PRIu64 " (%s)\n", - LLVMGetSymbolName(sym), LLVMGetSymbolAddress(sym), - LLVMGetSymbolFileOffset(sym), LLVMGetSymbolSize(sym), + printf("%s @0x%08" PRIx64 " +%" PRIu64 " (%s)\n", LLVMGetSymbolName(sym), + LLVMGetSymbolAddress(sym), LLVMGetSymbolSize(sym), LLVMGetSectionName(sect)); LLVMMoveToNextSymbol(sym); -- cgit v1.2.3