diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-10-03 08:05:38 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-10-03 08:05:38 -0700 |
commit | 3b0e78e84065b446ec8a77f02bdbd5ac213af000 (patch) | |
tree | 2297b7a410095d4d34af3dd65fda483f3d4e78ea /lib/Bitcode | |
parent | a85ac8f6999c04c5306efb5aa4fe77fc013c90e2 (diff) |
PNaCl bitcode: Remove unused function ConvertTypeToScalarType()
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3590
TEST=build
Review URL: https://codereview.chromium.org/25802002
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp | 4 | ||||
-rw-r--r-- | lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp index 27673cd7d3..e1e545343f 100644 --- a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp +++ b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp @@ -993,10 +993,6 @@ Value *NaClBitcodeReader::ConvertOpToType(Value *Op, Type *T, report_fatal_error(StrM.str()); } -Type *NaClBitcodeReader::ConvertTypeToScalarType(Type *T) { - return T->isPointerTy() ? IntPtrType : T; -} - /// ParseFunctionBody - Lazily parse the specified function body block. bool NaClBitcodeReader::ParseFunctionBody(Function *F) { DEBUG(dbgs() << "-> ParseFunctionBody\n"); diff --git a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h index 56a894c7d4..b6cf9fab80 100644 --- a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h +++ b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h @@ -330,10 +330,6 @@ private: Value *ConvertOpToScalar(Value *Op, unsigned BBIndex, bool DeferInsertion = false); - /// \brief Returns the corresponding, PNaCl non-pointer equivalent - /// for the given type. - Type *ConvertTypeToScalarType(Type *T); - /// \brief Install instruction I into basic block BB. bool InstallInstruction(BasicBlock *BB, Instruction *I); |