[llvm-commits] CVS: llvm/tools/llvmc/CompilerDriver.cpp
Chris Lattner
sabre at nondot.org
Wed Feb 7 15:48:53 PST 2007
Changes in directory llvm/tools/llvmc:
CompilerDriver.cpp updated: 1.43 -> 1.44
---
Log message:
move an llvmc-specific function out of the bcreader into llvmc.
---
Diffs of the changes: (+17 -0)
CompilerDriver.cpp | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/tools/llvmc/CompilerDriver.cpp
diff -u llvm/tools/llvmc/CompilerDriver.cpp:1.43 llvm/tools/llvmc/CompilerDriver.cpp:1.44
--- llvm/tools/llvmc/CompilerDriver.cpp:1.43 Wed Feb 7 15:41:02 2007
+++ llvm/tools/llvmc/CompilerDriver.cpp Wed Feb 7 17:48:32 2007
@@ -62,6 +62,23 @@
DumpAction(&cd->Linker);
}
+static bool GetBytecodeDependentLibraries(const std::string &fname,
+ Module::LibraryListType& deplibs,
+ BCDecompressor_t *BCDC,
+ std::string* ErrMsg) {
+ ModuleProvider* MP = getBytecodeModuleProvider(fname, BCDC, ErrMsg);
+ if (!MP) {
+ deplibs.clear();
+ return true;
+ }
+ Module* M = MP->releaseModule(ErrMsg);
+ deplibs = M->getLibraries();
+ delete M;
+ delete MP;
+ return false;
+}
+
+
class CompilerDriverImpl : public CompilerDriver {
/// @name Constructors
/// @{
More information about the llvm-commits
mailing list