aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-05-27 00:52:31 +0000
committerEric Christopher <echristo@apple.com>2010-05-27 00:52:31 +0000
commitaeed4d81a8823bba260d2d6d1ff597e5e86c38ed (patch)
treed77541af2ec8895c3dcacb8c886b481caf3b6371 /lib/MC/MachObjectWriter.cpp
parent80250686d5df7f3b603eeaa08fb94f2765829e0a (diff)
Rearrange conditionals so we don't get caught with the correct type as wrong.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r--lib/MC/MachObjectWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp
index 1de22c46ce..3207e99777 100644
--- a/lib/MC/MachObjectWriter.cpp
+++ b/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;