mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
Add llvm::Triple::getArchTypePrefix for getting the intrinsic prefix for an
identifier architecture. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -43,6 +43,31 @@ const char *Triple::getArchTypeName(ArchType Kind) {
|
||||
return "<invalid>";
|
||||
}
|
||||
|
||||
const char *Triple::getArchTypePrefix(ArchType Kind) {
|
||||
switch (Kind) {
|
||||
default:
|
||||
return 0;
|
||||
|
||||
case alpha: return "alpha";
|
||||
|
||||
case arm:
|
||||
case thumb: return "arm";
|
||||
|
||||
case bfin: return "bfin";
|
||||
|
||||
case cellspu: return "spu";
|
||||
|
||||
case ppc64:
|
||||
case ppc: return "ppc";
|
||||
|
||||
case sparc: return "sparc";
|
||||
|
||||
case x86:
|
||||
case x86_64: return "x86";
|
||||
case xcore: return "xcore";
|
||||
}
|
||||
}
|
||||
|
||||
const char *Triple::getVendorTypeName(VendorType Kind) {
|
||||
switch (Kind) {
|
||||
case UnknownVendor: return "unknown";
|
||||
|
Reference in New Issue
Block a user