summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-06-07 03:15:01 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-06-07 03:15:01 +0000
commitce4eee495145d78ec66ff33e39df68d8654defdc (patch)
treea0beb18299143c737b9a7a703854c0afc0f780e5 /llvm/lib/Target/ARM/ARMConstantPoolValue.cpp
parent0cd0cb992a394af3958e3da793cb8d42eb4cba78 (diff)
downloadbcm5719-llvm-ce4eee495145d78ec66ff33e39df68d8654defdc.tar.gz
bcm5719-llvm-ce4eee495145d78ec66ff33e39df68d8654defdc.zip
ARM: clang-format a couple of switches, add comments
clang-format a couple of switches in preparation for a future change. Add some enumeration comments llvm-svn: 271973
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantPoolValue.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMConstantPoolValue.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp
index 7bcf46f97b4..2dbe236cc77 100644
--- a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp
+++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp
@@ -50,11 +50,16 @@ const char *ARMConstantPoolValue::getModifierText() const {
switch (Modifier) {
// FIXME: Are these case sensitive? It'd be nice to lower-case all the
// strings if that's legal.
- case ARMCP::no_modifier: return "none";
- case ARMCP::TLSGD: return "tlsgd";
- case ARMCP::GOT_PREL: return "GOT_PREL";
- case ARMCP::GOTTPOFF: return "gottpoff";
- case ARMCP::TPOFF: return "tpoff";
+ case ARMCP::no_modifier:
+ return "none";
+ case ARMCP::TLSGD:
+ return "tlsgd";
+ case ARMCP::GOT_PREL:
+ return "GOT_PREL";
+ case ARMCP::GOTTPOFF:
+ return "gottpoff";
+ case ARMCP::TPOFF:
+ return "tpoff";
}
llvm_unreachable("Unknown modifier!");
}
OpenPOWER on IntegriCloud