diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-01-21 14:28:52 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-01-21 14:28:52 +0000 |
commit | 6cd1ab976da798acf95eec47de1f7aff890d4165 (patch) | |
tree | 62563c3d9019c34b40f818025d33020d6f9f1b3f /tools/llvm-link | |
parent | bf54802a5ce32d55fcd5537cccd7eacb1d4e5e28 (diff) |
Revert obsolete llvm-link -preserve-modules option/test
This testing mode is now obsolete with the change to linkInModule
to take a std::unique_ptr to Module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-link')
-rw-r--r-- | tools/llvm-link/llvm-link.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index a32383028ae..f179ff20b6f 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/tools/llvm-link/llvm-link.cpp @@ -89,10 +89,6 @@ static cl::opt<bool> SuppressWarnings("suppress-warnings", cl::desc("Suppress all linking warnings"), cl::init(false)); -static cl::opt<bool> - PreserveModules("preserve-modules", - cl::desc("Preserve linked modules for testing")); - static cl::opt<bool> PreserveBitcodeUseListOrder( "preserve-bc-uselistorder", cl::desc("Preserve use-list order when writing LLVM bitcode."), @@ -284,15 +280,6 @@ static bool linkFiles(const char *argv0, LLVMContext &Context, Linker &L, return false; // All linker flags apply to linking of subsequent files. ApplicableFlags = Flags; - - // If requested for testing, preserve modules by releasing them from - // the unique_ptr before the are freed. This can help catch any - // cross-module references from e.g. unneeded metadata references - // that aren't properly set to null but instead mapped to the source - // module version. The bitcode writer will assert if it finds any such - // cross-module references. - if (PreserveModules) - M.release(); } return true; |