[llvm-commits] [llvm] r104793 - /llvm/trunk/lib/MC/MachObjectWriter.cpp
Eric Christopher
echristo at apple.com
Wed May 26 17:52:31 PDT 2010
Author: echristo
Date: Wed May 26 19:52:31 2010
New Revision: 104793
URL: http://llvm.org/viewvc/llvm-project?rev=104793&view=rev
Log:
Rearrange conditionals so we don't get caught with the correct type as wrong.
Modified:
llvm/trunk/lib/MC/MachObjectWriter.cpp
Modified: llvm/trunk/lib/MC/MachObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MachObjectWriter.cpp?rev=104793&r1=104792&r2=104793&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MachObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/MachObjectWriter.cpp Wed May 26 19:52:31 2010
@@ -612,10 +612,10 @@
Type = RIT_X86_64_GOTLoad;
else
Type = RIT_X86_64_GOT;
- } else if (Modifier != MCSymbolRefExpr::VK_None) {
- report_fatal_error("unsupported symbol modifier in relocation");
- } else if (Modifier == MCSymbolRefExpr::VK_TLVP) {
+ } else if (Modifier == MCSymbolRefExpr::VK_TLVP) {
Type = RIT_X86_64_TLV;
+ } else if (Modifier != MCSymbolRefExpr::VK_None) {
+ report_fatal_error("unsupported symbol modifier in relocation");
} else {
Type = RIT_X86_64_Signed;
More information about the llvm-commits
mailing list