aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARM.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/ARM/ARM.h')
-rw-r--r--lib/Target/ARM/ARM.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARM.h b/lib/Target/ARM/ARM.h
index 167d71eab6..1f0a240f75 100644
--- a/lib/Target/ARM/ARM.h
+++ b/lib/Target/ARM/ARM.h
@@ -20,6 +20,20 @@
#include <cassert>
namespace llvm {
+ // Enums corresponding to ARM condition codes
+ namespace ARMCC {
+ enum CondCodes {
+ NE
+ };
+ }
+
+ static const char *ARMCondCodeToString(ARMCC::CondCodes CC) {
+ switch (CC) {
+ default: assert(0 && "Unknown condition code");
+ case ARMCC::NE: return "ne";
+ }
+ }
+
class FunctionPass;
class TargetMachine;