summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/Linker.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-05-04 03:06:50 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-05-04 03:06:50 +0000
commita8023c1c9feb9da2cef0d476af7de76100bc87dd (patch)
treef4f4ed0787f3bf2ba329764a3d38d2cf8b243e87 /llvm/lib/Linker/Linker.cpp
parent0229acaa0f2cdf37cddd44d82457695e58707372 (diff)
downloadbcm5719-llvm-a8023c1c9feb9da2cef0d476af7de76100bc87dd.tar.gz
bcm5719-llvm-a8023c1c9feb9da2cef0d476af7de76100bc87dd.zip
Last batch of cleanups to Linker.h.
Update comments, fix * placement, fix method names that are not used in clang, add a linkInModule that takes a Mode and put it in Linker.cpp. llvm-svn: 181099
Diffstat (limited to 'llvm/lib/Linker/Linker.cpp')
-rw-r--r--llvm/lib/Linker/Linker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Linker/Linker.cpp b/llvm/lib/Linker/Linker.cpp
index ab99b98ee04..83c7160555e 100644
--- a/llvm/lib/Linker/Linker.cpp
+++ b/llvm/lib/Linker/Linker.cpp
@@ -24,3 +24,7 @@ Linker::Linker(Module* aModule) :
Linker::~Linker() {
}
+
+bool Linker::linkInModule(Module *Src, unsigned Mode, std::string *ErrorMsg) {
+ return LinkModules(Composite, Src, Linker::DestroySource, ErrorMsg);
+}
OpenPOWER on IntegriCloud