diff options
| author | Quentin Colombet <qcolombet@apple.com> | 2016-01-19 22:31:12 +0000 |
|---|---|---|
| committer | Quentin Colombet <qcolombet@apple.com> | 2016-01-19 22:31:12 +0000 |
| commit | 2c49e2e6645f952528a282d47b7b91523c0a2ab0 (patch) | |
| tree | 8a3b9692793f95112b0cf8bbafbf9d6af13af7c3 | |
| parent | 97ce2bcefe15b7341d3a9ee91cc8eea0e49391c5 (diff) | |
| download | bcm5719-llvm-2c49e2e6645f952528a282d47b7b91523c0a2ab0.tar.gz bcm5719-llvm-2c49e2e6645f952528a282d47b7b91523c0a2ab0.zip | |
[MachineFunction] Constify getter. NFC.
llvm-svn: 258207
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineFunction.h | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h index 82c30d39afd..df7c951743c 100644 --- a/llvm/include/llvm/CodeGen/MachineFunction.h +++ b/llvm/include/llvm/CodeGen/MachineFunction.h @@ -295,7 +295,7 @@ public: } /// Should we be emitting segmented stack stuff for the function - bool shouldSplitStack(); + bool shouldSplitStack() const; /// getNumBlockIDs - Return the number of MBB ID's allocated. /// diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index ca4bb1c6ad4..f6604f38722 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -163,7 +163,7 @@ getOrCreateJumpTableInfo(unsigned EntryKind) { } /// Should we be emitting segmented stack stuff for the function -bool MachineFunction::shouldSplitStack() { +bool MachineFunction::shouldSplitStack() const { return getFunction()->hasFnAttribute("split-stack"); } |

