diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-12 19:30:44 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-12 19:30:44 +0000 |
| commit | f857950d391d06d490e2ecf014678b4dee24003f (patch) | |
| tree | d060768928a8f51bce2bffa2c1ef9ca20b5cc740 /clang/lib/Frontend/SerializedDiagnosticPrinter.cpp | |
| parent | 5ea0349ef59288bb239036b87bbcfcb41e3f62e8 (diff) | |
| download | bcm5719-llvm-f857950d391d06d490e2ecf014678b4dee24003f.tar.gz bcm5719-llvm-f857950d391d06d490e2ecf014678b4dee24003f.zip | |
Remove useless 'llvm::' qualifier from names like StringRef and others that are
brought into 'clang' namespace by clang/Basic/LLVM.h
llvm-svn: 172323
Diffstat (limited to 'clang/lib/Frontend/SerializedDiagnosticPrinter.cpp')
| -rw-r--r-- | clang/lib/Frontend/SerializedDiagnosticPrinter.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp b/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp index 26915e5f771..8eb0e40b01b 100644 --- a/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp +++ b/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp @@ -44,8 +44,8 @@ public: } }; -typedef llvm::SmallVector<uint64_t, 64> RecordData; -typedef llvm::SmallVectorImpl<uint64_t> RecordDataImpl; +typedef SmallVector<uint64_t, 64> RecordData; +typedef SmallVectorImpl<uint64_t> RecordDataImpl; class SDiagsWriter; @@ -92,11 +92,11 @@ class SDiagsWriter : public DiagnosticConsumer { struct SharedState; - explicit SDiagsWriter(llvm::IntrusiveRefCntPtr<SharedState> State) + explicit SDiagsWriter(IntrusiveRefCntPtr<SharedState> State) : LangOpts(0), OriginalInstance(false), State(State) { } public: - SDiagsWriter(llvm::raw_ostream *os, DiagnosticOptions *diags) + SDiagsWriter(raw_ostream *os, DiagnosticOptions *diags) : LangOpts(0), OriginalInstance(true), State(new SharedState(os, diags)) { EmitPreamble(); @@ -190,12 +190,12 @@ private: /// \brief State that is shared among the various clones of this diagnostic /// consumer. - struct SharedState : llvm::RefCountedBase<SharedState> { - SharedState(llvm::raw_ostream *os, DiagnosticOptions *diags) + struct SharedState : RefCountedBase<SharedState> { + SharedState(raw_ostream *os, DiagnosticOptions *diags) : DiagOpts(diags), Stream(Buffer), OS(os), EmittedAnyDiagBlocks(false) { } /// \brief Diagnostic options. - llvm::IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; + IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; /// \brief The byte buffer for the serialized content. SmallString<1024> Buffer; @@ -204,7 +204,7 @@ private: llvm::BitstreamWriter Stream; /// \brief The name of the diagnostics file. - OwningPtr<llvm::raw_ostream> OS; + OwningPtr<raw_ostream> OS; /// \brief The set of constructed record abbreviations. AbbreviationMap Abbrevs; @@ -221,7 +221,7 @@ private: /// \brief The collection of files used. llvm::DenseMap<const char *, unsigned> Files; - typedef llvm::DenseMap<const void *, std::pair<unsigned, llvm::StringRef> > + typedef llvm::DenseMap<const void *, std::pair<unsigned, StringRef> > DiagFlagsTy; /// \brief Map for uniquing strings. @@ -234,14 +234,13 @@ private: }; /// \brief State shared among the various clones of this diagnostic consumer. - llvm::IntrusiveRefCntPtr<SharedState> State; + IntrusiveRefCntPtr<SharedState> State; }; } // end anonymous namespace namespace clang { namespace serialized_diags { -DiagnosticConsumer *create(llvm::raw_ostream *OS, - DiagnosticOptions *diags) { +DiagnosticConsumer *create(raw_ostream *OS, DiagnosticOptions *diags) { return new SDiagsWriter(OS, diags); } } // end namespace serialized_diags |

