From eaddfac539c896ee5bf5ef184e12a38d7d7a16fd Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 27 May 2010 00:52:31 +0000 Subject: Rearrange conditionals so we don't get caught with the correct type as wrong. llvm-svn: 104793 --- llvm/lib/MC/MachObjectWriter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/MC') diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp index 1de22c46ceb..3207e99777a 100644 --- a/llvm/lib/MC/MachObjectWriter.cpp +++ b/llvm/lib/MC/MachObjectWriter.cpp @@ -612,10 +612,10 @@ public: 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; -- cgit v1.2.3