mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Replace 4-line function with 10-line version per review comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f427580e0
commit
9989a65693
@ -143,10 +143,16 @@ public:
|
||||
TargetType == isCygwin); }
|
||||
bool isTargetCygwin() const { return TargetType == isCygwin; }
|
||||
|
||||
std::string getDataLayout() const { return
|
||||
is64Bit() ? std::string("e-p:64:64-f64:32:64-i64:32:64-f80:128:128") :
|
||||
isTargetDarwin() ? std::string("e-p:32:32-f64:32:64-i64:32:64-f80:128:128") :
|
||||
std::string("e-p:32:32-f64:32:64-i64:32:64-f80:32:32"); }
|
||||
std::string getDataLayout() const {
|
||||
const char *p;
|
||||
if (is64Bit())
|
||||
p = "e-p:64:64-f64:32:64-i64:32:64-f80:128:128";
|
||||
else if (isTargetDarwin())
|
||||
p = "e-p:32:32-f64:32:64-i64:32:64-f80:128:128";
|
||||
else
|
||||
p = "e-p:32:32-f64:32:64-i64:32:64-f80:32:32";
|
||||
return std::string(p);
|
||||
}
|
||||
|
||||
bool isPICStyleSet() const { return PICStyle != PICStyle::None; }
|
||||
bool isPICStyleGOT() const { return PICStyle == PICStyle::GOT; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user