summaryrefslogtreecommitdiff
path: root/tools/llc
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2015-05-23 01:12:26 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2015-05-23 01:12:26 +0000
commitc17da7166dba20e3f644220e99b0accfc206e2e4 (patch)
treed9201c0cf0f90a600f6a3708a0b9491d9a05176c /tools/llc
parent4ea4cb31974720364c440bba63f255c5990c7316 (diff)
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
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index ca86a99524b..145d957890c 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -304,8 +304,8 @@ static int compileModule(char **argv, LLVMContext &Context) {
if (const DataLayout *DL = Target->getDataLayout())
M->setDataLayout(*DL);
- // Override function attributes.
- overrideFunctionAttributes(CPUStr, FeaturesStr, *M);
+ // Override function attributes based on CPUStr and FeaturesStr.
+ setFunctionAttributes(CPUStr, FeaturesStr, *M);
if (RelaxAll.getNumOccurrences() > 0 &&
FileType != TargetMachine::CGFT_ObjectFile)