forked from OSchip/llvm-project
Remove VISIBILITY_HIDDEN from anonymous namespaces in libFrontend.
llvm-svn: 90033
This commit is contained in:
parent
435ef9b383
commit
16634c2c5a
|
@ -21,7 +21,6 @@
|
|||
#include "clang/Basic/TargetOptions.h"
|
||||
#include "clang/Basic/TargetInfo.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/System/Path.h"
|
||||
|
||||
using namespace clang;
|
||||
|
@ -41,7 +40,7 @@ namespace {
|
|||
|
||||
/// \brief Gathers information from PCHReader that will be used to initialize
|
||||
/// a Preprocessor.
|
||||
class VISIBILITY_HIDDEN PCHInfoCollector : public PCHReaderListener {
|
||||
class PCHInfoCollector : public PCHReaderListener {
|
||||
LangOptions &LangOpt;
|
||||
HeaderSearch &HSI;
|
||||
std::string &TargetTriple;
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Frontend/PathDiagnosticClients.h"
|
||||
#include "clang/Lex/Preprocessor.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/System/Program.h"
|
||||
|
@ -62,7 +61,7 @@ CreatePlistHTMLDiagnosticClient(const std::string& prefix,
|
|||
|
||||
namespace {
|
||||
|
||||
class VISIBILITY_HIDDEN AnalysisConsumer : public ASTConsumer {
|
||||
class AnalysisConsumer : public ASTConsumer {
|
||||
public:
|
||||
typedef void (*CodeAction)(AnalysisConsumer &C, AnalysisManager &M, Decl *D);
|
||||
|
||||
|
|
|
@ -25,12 +25,9 @@
|
|||
#include "llvm/Bitcode/ReaderWriter.h"
|
||||
#include "llvm/CodeGen/RegAllocRegistry.h"
|
||||
#include "llvm/CodeGen/SchedulerRegistry.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/FormattedStream.h"
|
||||
#include "llvm/Support/StandardPasses.h"
|
||||
#include "llvm/Support/Timer.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/System/Program.h"
|
||||
#include "llvm/Target/SubtargetFeature.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
|
@ -39,7 +36,7 @@ using namespace clang;
|
|||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN BackendConsumer : public ASTConsumer {
|
||||
class BackendConsumer : public ASTConsumer {
|
||||
BackendAction Action;
|
||||
CodeGenOptions CodeGenOpts;
|
||||
TargetOptions TargetOpts;
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include "clang/Lex/Preprocessor.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/System/Path.h"
|
||||
|
@ -40,7 +39,7 @@ using namespace clang::io;
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN PTHEntry {
|
||||
class PTHEntry {
|
||||
Offset TokenData, PPCondData;
|
||||
|
||||
public:
|
||||
|
@ -54,7 +53,7 @@ public:
|
|||
};
|
||||
|
||||
|
||||
class VISIBILITY_HIDDEN PTHEntryKeyVariant {
|
||||
class PTHEntryKeyVariant {
|
||||
union { const FileEntry* FE; const char* Path; };
|
||||
enum { IsFE = 0x1, IsDE = 0x2, IsNoExist = 0x0 } Kind;
|
||||
struct stat *StatBuf;
|
||||
|
@ -105,7 +104,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class VISIBILITY_HIDDEN FileEntryPTHEntryInfo {
|
||||
class FileEntryPTHEntryInfo {
|
||||
public:
|
||||
typedef PTHEntryKeyVariant key_type;
|
||||
typedef key_type key_type_ref;
|
||||
|
@ -169,7 +168,7 @@ typedef llvm::DenseMap<const IdentifierInfo*,uint32_t> IDMap;
|
|||
typedef llvm::StringMap<OffsetOpt, llvm::BumpPtrAllocator> CachedStrsTy;
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN PTHWriter {
|
||||
class PTHWriter {
|
||||
IDMap IM;
|
||||
llvm::raw_fd_ostream& Out;
|
||||
Preprocessor& PP;
|
||||
|
@ -577,7 +576,7 @@ public:
|
|||
};
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN PTHIdentifierTableTrait {
|
||||
class PTHIdentifierTableTrait {
|
||||
public:
|
||||
typedef PTHIdKey* key_type;
|
||||
typedef key_type key_type_ref;
|
||||
|
|
|
@ -21,14 +21,13 @@
|
|||
#include "clang/Lex/PPCallbacks.h"
|
||||
#include "clang/Lex/Preprocessor.h"
|
||||
#include "llvm/ADT/StringSet.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <string>
|
||||
|
||||
using namespace clang;
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN DependencyFileCallback : public PPCallbacks {
|
||||
class DependencyFileCallback : public PPCallbacks {
|
||||
std::vector<std::string> Files;
|
||||
llvm::StringSet<> FilesSet;
|
||||
const Preprocessor *PP;
|
||||
|
|
|
@ -20,16 +20,13 @@
|
|||
#include "clang/Lex/Preprocessor.h"
|
||||
#include "clang/Basic/FileManager.h"
|
||||
#include "llvm/Bitcode/BitstreamWriter.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <string>
|
||||
|
||||
using namespace clang;
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN PCHGenerator : public SemaConsumer {
|
||||
class PCHGenerator : public SemaConsumer {
|
||||
const Preprocessor &PP;
|
||||
const char *isysroot;
|
||||
llvm::raw_ostream *Out;
|
||||
|
@ -62,7 +59,7 @@ void PCHGenerator::HandleTranslationUnit(ASTContext &Ctx) {
|
|||
|
||||
// Write the PCH contents into a buffer
|
||||
std::vector<unsigned char> Buffer;
|
||||
BitstreamWriter Stream(Buffer);
|
||||
llvm::BitstreamWriter Stream(Buffer);
|
||||
PCHWriter Writer(Stream);
|
||||
|
||||
// Emit the PCH file
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include "clang/Rewrite/HTMLRewrite.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/Lex/Preprocessor.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/System/Path.h"
|
||||
|
@ -34,7 +33,7 @@ using namespace clang;
|
|||
|
||||
namespace {
|
||||
|
||||
class VISIBILITY_HIDDEN HTMLDiagnostics : public PathDiagnosticClient {
|
||||
class HTMLDiagnostics : public PathDiagnosticClient {
|
||||
llvm::sys::Path Directory, FilePrefix;
|
||||
bool createdDir, noDir;
|
||||
const Preprocessor &PP;
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include "clang/Basic/Version.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/Bitcode/BitstreamReader.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/System/Path.h"
|
||||
|
@ -357,7 +356,7 @@ Expr *PCHReader::ReadTypeExpr() {
|
|||
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN PCHMethodPoolLookupTrait {
|
||||
class PCHMethodPoolLookupTrait {
|
||||
PCHReader &Reader;
|
||||
|
||||
public:
|
||||
|
@ -465,7 +464,7 @@ typedef OnDiskChainedHashTable<PCHMethodPoolLookupTrait>
|
|||
PCHMethodPoolLookupTable;
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN PCHIdentifierLookupTrait {
|
||||
class PCHIdentifierLookupTrait {
|
||||
PCHReader &Reader;
|
||||
|
||||
// If we know the IdentifierInfo in advance, it is here and we will
|
||||
|
@ -676,7 +675,7 @@ bool PCHReader::ParseLineTable(llvm::SmallVectorImpl<uint64_t> &Record) {
|
|||
|
||||
namespace {
|
||||
|
||||
class VISIBILITY_HIDDEN PCHStatData {
|
||||
class PCHStatData {
|
||||
public:
|
||||
const bool hasStat;
|
||||
const ino_t ino;
|
||||
|
@ -692,7 +691,7 @@ public:
|
|||
: hasStat(false), ino(0), dev(0), mode(0), mtime(0), size(0) {}
|
||||
};
|
||||
|
||||
class VISIBILITY_HIDDEN PCHStatLookupTrait {
|
||||
class PCHStatLookupTrait {
|
||||
public:
|
||||
typedef const char *external_key_type;
|
||||
typedef const char *internal_key_type;
|
||||
|
@ -740,7 +739,7 @@ class VISIBILITY_HIDDEN PCHStatLookupTrait {
|
|||
///
|
||||
/// This cache is very similar to the stat cache used by pretokenized
|
||||
/// headers.
|
||||
class VISIBILITY_HIDDEN PCHStatCache : public StatSysCallCache {
|
||||
class PCHStatCache : public StatSysCallCache {
|
||||
typedef OnDiskChainedHashTable<PCHStatLookupTrait> CacheTy;
|
||||
CacheTy *Cache;
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "llvm/ADT/APInt.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/Bitcode/BitstreamWriter.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include <cstdio>
|
||||
|
@ -44,7 +43,7 @@ using namespace clang;
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN PCHTypeWriter {
|
||||
class PCHTypeWriter {
|
||||
PCHWriter &Writer;
|
||||
PCHWriter::RecordData &Record;
|
||||
|
||||
|
@ -781,7 +780,7 @@ void PCHWriter::WriteLanguageOptions(const LangOptions &LangOpts) {
|
|||
|
||||
namespace {
|
||||
// Trait used for the on-disk hash table of stat cache results.
|
||||
class VISIBILITY_HIDDEN PCHStatCacheTrait {
|
||||
class PCHStatCacheTrait {
|
||||
public:
|
||||
typedef const char * key_type;
|
||||
typedef key_type key_type_ref;
|
||||
|
@ -1359,7 +1358,7 @@ uint64_t PCHWriter::WriteDeclContextVisibleBlock(ASTContext &Context,
|
|||
|
||||
namespace {
|
||||
// Trait used for the on-disk hash table used in the method pool.
|
||||
class VISIBILITY_HIDDEN PCHMethodPoolTrait {
|
||||
class PCHMethodPoolTrait {
|
||||
PCHWriter &Writer;
|
||||
|
||||
public:
|
||||
|
@ -1561,7 +1560,7 @@ void PCHWriter::WriteMethodPool(Sema &SemaRef) {
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN PCHIdentifierTableTrait {
|
||||
class PCHIdentifierTableTrait {
|
||||
PCHWriter &Writer;
|
||||
Preprocessor &PP;
|
||||
|
||||
|
|
|
@ -16,10 +16,8 @@
|
|||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Basic/FileManager.h"
|
||||
#include "clang/Lex/Preprocessor.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/System/Path.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
using namespace clang;
|
||||
|
@ -32,7 +30,7 @@ namespace clang {
|
|||
}
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN PlistDiagnostics : public PathDiagnosticClient {
|
||||
class PlistDiagnostics : public PathDiagnosticClient {
|
||||
std::vector<const PathDiagnostic*> BatchedDiags;
|
||||
const std::string OutputFile;
|
||||
const LangOptions &LangOpts;
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include "clang/AST/DeclObjC.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
using namespace clang;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -25,7 +24,7 @@ using namespace clang;
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN StmtXML : public StmtVisitor<StmtXML> {
|
||||
class StmtXML : public StmtVisitor<StmtXML> {
|
||||
DocumentXML& Doc;
|
||||
|
||||
//static const char *getOpcodeStr(UnaryOperator::Opcode Op);
|
||||
|
|
Loading…
Reference in New Issue