Fixed typo in the name of "ReadPreamble".

llvm-svn: 43790
This commit is contained in:
Ted Kremenek 2007-11-06 23:52:19 +00:00
parent bcce2f8d54
commit fa2bf434cc
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ static void WritePreamble(llvm::BitstreamWriter& Stream) {
Stream.Emit(0x0, 4);
}
static bool ReadPremable(llvm::BitstreamReader& Stream) {
static bool ReadPreamble(llvm::BitstreamReader& Stream) {
return Stream.Read(8) != 'B' ||
Stream.Read(8) != 'C' ||
Stream.Read(4) != 0xC ||
@ -188,7 +188,7 @@ void SerializationTest::Deserialize(llvm::sys::Path& Filename) {
llvm::BitstreamReader Stream(BufPtr,BufPtr+MBuffer->getBufferSize());
// Sniff for the signature in the bitcode file.
if (ReadPremable(Stream)) {
if (ReadPreamble(Stream)) {
llvm::cerr << "ERROR: Invalid AST-bitcode signature.\n";
return;
}