mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Simplify and rename function overrideFunctionAttributes. NFC.
This is in preparation to making changes needed to stop resetting NoFramePointerElim in resetTargetOptions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -386,6 +386,7 @@ int main(int argc, char **argv) {
|
||||
Triple ModuleTriple(M->getTargetTriple());
|
||||
std::string CPUStr, FeaturesStr;
|
||||
TargetMachine *Machine = nullptr;
|
||||
|
||||
if (ModuleTriple.getArch()) {
|
||||
CPUStr = getCPUStr();
|
||||
FeaturesStr = getFeaturesStr();
|
||||
@@ -394,8 +395,8 @@ int main(int argc, char **argv) {
|
||||
|
||||
std::unique_ptr<TargetMachine> TM(Machine);
|
||||
|
||||
// Override function attributes.
|
||||
overrideFunctionAttributes(CPUStr, FeaturesStr, *M);
|
||||
// Override function attributes based on CPUStr and FeaturesStr.
|
||||
setFunctionAttributes(CPUStr, FeaturesStr, *M);
|
||||
|
||||
// If the output is set to be emitted to standard out, and standard out is a
|
||||
// console, print out a warning message and refuse to do it. We don't
|
||||
|
Reference in New Issue
Block a user