Target/X86: Add explicit Win64 and System V/x86-64 calling conventions.
[oota-llvm.git] / lib / Object / Object.cpp
index 3e2c78ec47c180776b4a3893821380634038cef0..6941708dd349014dd65e40ed84bd3219c8026c86 100644 (file)
@@ -219,10 +219,7 @@ uint64_t LLVMGetRelocationOffset(LLVMRelocationIteratorRef RI) {
 }
 
 LLVMSymbolIteratorRef LLVMGetRelocationSymbol(LLVMRelocationIteratorRef RI) {
-  SymbolRef ret;
-  if (error_code ec = (*unwrap(RI))->getSymbol(ret))
-    report_fatal_error(ec.message());
-
+  symbol_iterator ret = (*unwrap(RI))->getSymbol();
   return wrap(new symbol_iterator(ret));
 }