diff options
author | Sean Callanan <scallanan@apple.com> | 2010-01-27 23:20:51 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2010-01-27 23:20:51 +0000 |
commit | e2749017e1a4b258454db825d5d0a8a29e5852b2 (patch) | |
tree | 9085d08fef9405855c3ae2803e5dd7e534fc8a3a /include | |
parent | c3fbf91697d688e9633ae823b223f3446be93fd7 (diff) | |
download | external_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.h | 8 |
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 |