From e2749017e1a4b258454db825d5d0a8a29e5852b2 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Wed, 27 Jan 2010 23:20:51 +0000 Subject: [PATCH] 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 --- include/llvm-c/EnhancedDisassembly.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/llvm-c/EnhancedDisassembly.h b/include/llvm-c/EnhancedDisassembly.h index 46da1d85cc2..54a42221972 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