summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCFunction.cpp
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2013-08-21 07:27:55 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2013-08-21 07:27:55 +0000
commit7bfc7da6e87abf8ab77a9a04b0ca355a6713b442 (patch)
tree8b80f2928e60f85bd76145b73981f5b4da5b8119 /llvm/lib/MC/MCFunction.cpp
parentd6351e76d53bfb9d6be9487a394b8a5b75a28e42 (diff)
downloadbcm5719-llvm-7bfc7da6e87abf8ab77a9a04b0ca355a6713b442.tar.gz
bcm5719-llvm-7bfc7da6e87abf8ab77a9a04b0ca355a6713b442.zip
MC CFG: Keep pointer to parent MCModule in created MCFunctions.
Also, drive-by cleaning around createFunction. llvm-svn: 188875
Diffstat (limited to 'llvm/lib/MC/MCFunction.cpp')
-rw-r--r--llvm/lib/MC/MCFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCFunction.cpp b/llvm/lib/MC/MCFunction.cpp
index 473d07bf994..cb2504668a3 100644
--- a/llvm/lib/MC/MCFunction.cpp
+++ b/llvm/lib/MC/MCFunction.cpp
@@ -9,15 +9,15 @@
#include "llvm/MC/MCFunction.h"
#include "llvm/MC/MCAtom.h"
-#include "llvm/Support/raw_ostream.h"
+#include "llvm/MC/MCModule.h"
#include <algorithm>
using namespace llvm;
// MCFunction
-MCFunction::MCFunction(StringRef Name)
- : Name(Name)
+MCFunction::MCFunction(StringRef Name, MCModule *Parent)
+ : Name(Name), ParentModule(Parent)
{}
MCFunction::~MCFunction() {
OpenPOWER on IntegriCloud