aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-01-27 23:20:51 +0000
committerSean Callanan <scallanan@apple.com>2010-01-27 23:20:51 +0000
commite2749017e1a4b258454db825d5d0a8a29e5852b2 (patch)
tree9085d08fef9405855c3ae2803e5dd7e534fc8a3a /include
parentc3fbf91697d688e9633ae823b223f3446be93fd7 (diff)
downloadexternal_llvm-e2749017e1a4b258454db825d5d0a8a29e5852b2.zip
external_llvm-e2749017e1a4b258454db825d5d0a8a29e5852b2.tar.gz
external_llvm-e2749017e1a4b258454db825d5d0a8a29e5852b2.tar.bz2
Changed constants to an enum so as not to pollute the
global namespace needlessly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm-c/EnhancedDisassembly.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm-c/EnhancedDisassembly.h b/include/llvm-c/EnhancedDisassembly.h
index 46da1d8..54a4222 100644
--- a/include/llvm-c/EnhancedDisassembly.h
+++ b/include/llvm-c/EnhancedDisassembly.h
@@ -51,12 +51,12 @@ typedef int (*EDRegisterReaderCallback)(uint64_t *value, unsigned regID,
@typedef EDAssemblySyntax_t
An assembly syntax for use in tokenizing instructions.
*/
-typedef uint32_t EDAssemblySyntax_t;
-
+typedef enum {
/*! @constant kEDAssemblySyntaxX86Intel Intel syntax for i386 and x86_64. */
-const EDAssemblySyntax_t kEDAssemblySyntaxX86Intel = 0;
+ kEDAssemblySyntaxX86Intel = 0,
/*! @constant kEDAssemblySyntaxX86ATT AT&T syntax for i386 and x86_64. */
-const EDAssemblySyntax_t kEDAssemblySyntaxX86ATT = 1;
+ kEDAssemblySyntaxX86ATT = 1
+} EDAssemblySyntax_t;
/*!
@typedef EDDisassemblerRef