[llvm-commits] [llvm] r94697 - /llvm/trunk/include/llvm-c/EnhancedDisassembly.h
Sean Callanan
scallanan at apple.com
Wed Jan 27 15:20:51 PST 2010
Author: spyffe
Date: Wed Jan 27 17:20:51 2010
New Revision: 94697
URL: http://llvm.org/viewvc/llvm-project?rev=94697&view=rev
Log:
Changed constants to an enum so as not to pollute the
global namespace needlessly.
Modified:
llvm/trunk/include/llvm-c/EnhancedDisassembly.h
Modified: llvm/trunk/include/llvm-c/EnhancedDisassembly.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/EnhancedDisassembly.h?rev=94697&r1=94696&r2=94697&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/EnhancedDisassembly.h (original)
+++ llvm/trunk/include/llvm-c/EnhancedDisassembly.h Wed Jan 27 17:20:51 2010
@@ -51,12 +51,12 @@
@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
More information about the llvm-commits
mailing list