summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Bytecode/Writer')
-rw-r--r--llvm/lib/Bytecode/Writer/SlotCalculator.cpp11
-rw-r--r--llvm/lib/Bytecode/Writer/SlotCalculator.h2
2 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
index 0f8d4d559c0..fc051441506 100644
--- a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
+++ b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp
@@ -73,17 +73,6 @@ SlotCalculator::SlotCalculator(const Module *M ) {
processModule();
}
-SlotCalculator::SlotCalculator(const Function *M ) {
- TheModule = M ? M->getParent() : 0;
-
- insertPrimitives();
-
- if (TheModule == 0) return; // Empty table...
-
- processModule(); // Process module level stuff
- incorporateFunction(M); // Start out in incorporated state
-}
-
// processModule - Process all of the module level function declarations and
// types that are available.
//
diff --git a/llvm/lib/Bytecode/Writer/SlotCalculator.h b/llvm/lib/Bytecode/Writer/SlotCalculator.h
index 9a0aee93efc..251f21eaa0d 100644
--- a/llvm/lib/Bytecode/Writer/SlotCalculator.h
+++ b/llvm/lib/Bytecode/Writer/SlotCalculator.h
@@ -61,8 +61,6 @@ class SlotCalculator {
void operator=(const SlotCalculator &); // DO NOT IMPLEMENT
public:
SlotCalculator(const Module *M);
- // Start out in incorp state
- SlotCalculator(const Function *F);
/// getSlot - Return the slot number of the specified value in it's type
/// plane. This returns < 0 on error!
OpenPOWER on IntegriCloud