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
This commit is contained in:
Sean Callanan 2010-01-27 23:20:51 +00:00
parent c3fbf91697
commit e2749017e1

View File

@ -51,12 +51,12 @@ typedef int (*EDRegisterReaderCallback)(uint64_t *value, unsigned regID,
@typedef EDAssemblySyntax_t @typedef EDAssemblySyntax_t
An assembly syntax for use in tokenizing instructions. An assembly syntax for use in tokenizing instructions.
*/ */
typedef uint32_t EDAssemblySyntax_t; typedef enum {
/*! @constant kEDAssemblySyntaxX86Intel Intel syntax for i386 and x86_64. */ /*! @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. */ /*! @constant kEDAssemblySyntaxX86ATT AT&T syntax for i386 and x86_64. */
const EDAssemblySyntax_t kEDAssemblySyntaxX86ATT = 1; kEDAssemblySyntaxX86ATT = 1
} EDAssemblySyntax_t;
/*! /*!
@typedef EDDisassemblerRef @typedef EDDisassemblerRef