summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-27 06:03:19 +0000
committerChris Lattner <sabre@nondot.org>2009-04-27 06:03:19 +0000
commit9df8a73328ccbc49a66f3dd64f5ec1565505716e (patch)
tree3c02adfdf950f630fe47cb9ca147d01f1985de85 /clang/lib/Frontend/PCHReaderDecl.cpp
parent8f63ab53851bb35509c02a80864c603467cc3f32 (diff)
downloadbcm5719-llvm-9df8a73328ccbc49a66f3dd64f5ec1565505716e.tar.gz
bcm5719-llvm-9df8a73328ccbc49a66f3dd64f5ec1565505716e.zip
unclone SavedStreamPosition
llvm-svn: 70192
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index c279a217139..508d2ef170c 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/lib/Frontend/PCHReaderDecl.cpp
@@ -20,24 +20,6 @@
#include "clang/AST/Expr.h"
using namespace clang;
-// FIXME: Temporarily cloned from PCHReader.cpp.
-namespace {
- /// \brief Helper class that saves the current stream position and
- /// then restores it when destroyed.
- struct SavedStreamPosition {
- explicit SavedStreamPosition(llvm::BitstreamCursor &Cursor)
- : Cursor(Cursor), Offset(Cursor.GetCurrentBitNo()) { }
-
- ~SavedStreamPosition() {
- Cursor.JumpToBit(Offset);
- }
-
- private:
- llvm::BitstreamCursor &Cursor;
- uint64_t Offset;
- };
-}
-
//===----------------------------------------------------------------------===//
// Declaration deserialization
OpenPOWER on IntegriCloud