summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-12 06:31:59 +0000
committerEric Christopher <echristo@gmail.com>2019-04-12 06:31:59 +0000
commit8bbc3039be69d3147d6e1eeb156ff1a31927cc3b (patch)
treea2ee84a79ad7e228981d820fd530c4697e4f438b /llvm/lib/CodeGen/MachineFunction.cpp
parentb6c190da23129860e14cbcfe582a875d693c7219 (diff)
downloadbcm5719-llvm-8bbc3039be69d3147d6e1eeb156ff1a31927cc3b.tar.gz
bcm5719-llvm-8bbc3039be69d3147d6e1eeb156ff1a31927cc3b.zip
Move addFrameInst out of line and remove the MCDwarf.h include.
This removes 500 transitive dependencies for a modification of MCDwarf.h in a build of llc for a single out of line function and reduces the build overhead by more than half without impacting test time of check-llvm. llvm-svn: 358255
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index f58ade81f22..88a7d15c299 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -273,6 +273,12 @@ bool MachineFunction::shouldSplitStack() const {
return getFunction().hasFnAttribute("split-stack");
}
+LLVM_NODISCARD unsigned
+MachineFunction::addFrameInst(const MCCFIInstruction &Inst) {
+ FrameInstructions.push_back(Inst);
+ return FrameInstructions.size() - 1;
+}
+
/// This discards all of the MachineBasicBlock numbers and recomputes them.
/// This guarantees that the MBB numbers are sequential, dense, and match the
/// ordering of the blocks within the function. If a specific MachineBasicBlock
OpenPOWER on IntegriCloud