[llvm] r221770 - Delete dead code. NFC.

Rafael Espindola rafael.espindola at gmail.com
Tue Nov 11 20:31:19 PST 2014


Author: rafael
Date: Tue Nov 11 22:31:19 2014
New Revision: 221770

URL: http://llvm.org/viewvc/llvm-project?rev=221770&view=rev
Log:
Delete dead code. NFC.

Modified:
    llvm/trunk/include/llvm/Bitcode/BitstreamReader.h

Modified: llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitstreamReader.h?rev=221770&r1=221769&r2=221770&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/BitstreamReader.h (original)
+++ llvm/trunk/include/llvm/Bitcode/BitstreamReader.h Tue Nov 11 22:31:19 2014
@@ -230,12 +230,6 @@ public:
         static_cast<uint64_t>(pos - 1));
   }
 
-  uint32_t getWord(size_t pos) {
-    uint8_t buf[4] = { 0xFF, 0xFF, 0xFF, 0xFF };
-    BitStream->getBitcodeBytes().readBytes(pos, sizeof(buf), buf);
-    return *reinterpret_cast<support::ulittle32_t *>(buf);
-  }
-
   bool AtEndOfStream() {
     return BitsInCurWord == 0 && isEndPos(NextChar);
   }





More information about the llvm-commits mailing list