summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-11-09 19:24:48 +0000
committerFangrui Song <maskray@google.com>2018-11-09 19:24:48 +0000
commit60b7fb46e1a1548dc6dfa8c685d62fcd8ceaef77 (patch)
tree469f7ad65d5864afee15b600295a5ac233078345 /llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
parenta40cce80a7d205653a16544ed53923da3631e90a (diff)
downloadbcm5719-llvm-60b7fb46e1a1548dc6dfa8c685d62fcd8ceaef77.tar.gz
bcm5719-llvm-60b7fb46e1a1548dc6dfa8c685d62fcd8ceaef77.zip
[Hexagon] Fix some -Wunused-function with LLVM_DUMP_METHOD and -Wunused-variable
llvm-svn: 346543
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
index 074f195b78d..f5736546a87 100644
--- a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
@@ -555,10 +555,10 @@ void HexagonFrameLowering::emitPrologue(MachineFunction &MF,
bool HexagonFrameLowering::enableCalleeSaveSkip(
const MachineFunction &MF) const {
const auto &F = MF.getFunction();
- (void)F; // Silence unused variable in release builds
assert(F.hasFnAttribute(Attribute::NoReturn) &&
F.getFunction().hasFnAttribute(Attribute::NoUnwind) &&
!F.getFunction().hasFnAttribute(Attribute::UWTable));
+ (void)F;
// No need to save callee saved registers if the function does not return.
return MF.getSubtarget<HexagonSubtarget>().noreturnStackElim();
OpenPOWER on IntegriCloud