mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Add support for the gnueabihf environment. Patch by Sylvestre Ledru.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b4c673886
commit
8887a0f341
@ -104,6 +104,7 @@ public:
|
||||
|
||||
GNU,
|
||||
GNUEABI,
|
||||
GNUEABIHF,
|
||||
EABI,
|
||||
MachO,
|
||||
ANDROIDEABI
|
||||
|
@ -122,6 +122,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
|
||||
switch (Kind) {
|
||||
case UnknownEnvironment: return "unknown";
|
||||
case GNU: return "gnu";
|
||||
case GNUEABIHF: return "gnueabihf";
|
||||
case GNUEABI: return "gnueabi";
|
||||
case EABI: return "eabi";
|
||||
case MachO: return "macho";
|
||||
@ -382,6 +383,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
|
||||
Triple::EnvironmentType Triple::ParseEnvironment(StringRef EnvironmentName) {
|
||||
if (EnvironmentName.startswith("eabi"))
|
||||
return EABI;
|
||||
else if (EnvironmentName.startswith("gnueabihf"))
|
||||
return GNUEABIHF;
|
||||
else if (EnvironmentName.startswith("gnueabi"))
|
||||
return GNUEABI;
|
||||
else if (EnvironmentName.startswith("gnu"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user