aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Linker
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-05-04 02:13:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-05-04 02:13:18 +0000
commite6315cd32b4983c1c1ab900c3e28fdfc4b5d003e (patch)
tree77902861f82af5608d8bc31ed54c0013e81cf0c8 /lib/Linker
parentcc420a09118783923d34bd57ac221863df3f11e7 (diff)
downloadexternal_llvm-e6315cd32b4983c1c1ab900c3e28fdfc4b5d003e.zip
external_llvm-e6315cd32b4983c1c1ab900c3e28fdfc4b5d003e.tar.gz
external_llvm-e6315cd32b4983c1c1ab900c3e28fdfc4b5d003e.tar.bz2
Delete dead code from the linker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r--lib/Linker/Linker.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/Linker/Linker.cpp b/lib/Linker/Linker.cpp
index 74d24f2..06d2469 100644
--- a/lib/Linker/Linker.cpp
+++ b/lib/Linker/Linker.cpp
@@ -37,34 +37,3 @@ Linker::Linker(StringRef progname, Module* aModule, unsigned flags) :
Linker::~Linker() {
delete Composite;
}
-
-bool
-Linker::error(StringRef message) {
- Error = message;
- if (!(Flags&QuietErrors))
- errs() << ProgramName << ": error: " << message << "\n";
- return true;
-}
-
-bool
-Linker::warning(StringRef message) {
- Error = message;
- if (!(Flags&QuietWarnings))
- errs() << ProgramName << ": warning: " << message << "\n";
- return false;
-}
-
-void
-Linker::verbose(StringRef message) {
- if (Flags&Verbose)
- errs() << " " << message << "\n";
-}
-
-Module*
-Linker::releaseModule() {
- Module* result = Composite;
- Error.clear();
- Composite = 0;
- Flags = 0;
- return result;
-}