From 3b0e78e84065b446ec8a77f02bdbd5ac213af000 Mon Sep 17 00:00:00 2001 From: Mark Seaborn Date: Thu, 3 Oct 2013 08:05:38 -0700 Subject: 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 --- lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp | 4 ---- lib/Bitcode/NaCl/Reader/NaClBitcodeReader.h | 4 ---- 2 files changed, 8 deletions(-) (limited to 'lib/Bitcode/NaCl') 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); -- cgit v1.2.3-70-g09d2