From a8023c1c9feb9da2cef0d476af7de76100bc87dd Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 4 May 2013 03:06:50 +0000 Subject: 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 --- llvm/lib/Linker/Linker.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Linker/Linker.cpp') 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); +} -- cgit v1.2.3