mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Adding profile and version parsers to ARMTargetParser
This allows us to match armv6m to default to thumb, but will also be used by Clang's driver and remove the current incomplete copy in it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -112,6 +112,14 @@ namespace ARM {
|
||||
EK_LITTLE,
|
||||
EK_BIG
|
||||
};
|
||||
|
||||
// v6/v7/v8 Profile
|
||||
enum ProfileKind {
|
||||
PK_INVALID = 0,
|
||||
PK_A,
|
||||
PK_R,
|
||||
PK_M
|
||||
};
|
||||
} // namespace ARM
|
||||
|
||||
// Target Parsers, one per architecture.
|
||||
@@ -137,6 +145,8 @@ public:
|
||||
static unsigned parseCPUArch(StringRef CPU);
|
||||
static unsigned parseArchISA(StringRef Arch);
|
||||
static unsigned parseArchEndian(StringRef Arch);
|
||||
static unsigned parseArchProfile(StringRef Arch);
|
||||
static unsigned parseArchVersion(StringRef Arch);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user