aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-03-01 06:49:39 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-03-01 06:49:39 +0000
commit10285d9113c14d1e523f86a55b193eb752638ea5 (patch)
treedba2f12b27186e0dc354f00ddec4e8cacdd1497b /include/clang/Lex
parent701e3366828adf740734ae5bf4424ecac059bc9a (diff)
Revert r151800, which was committed without review and has correctness issues.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex')
-rw-r--r--include/clang/Lex/HeaderSearch.h22
-rw-r--r--include/clang/Lex/Preprocessor.h1
2 files changed, 0 insertions, 23 deletions
diff --git a/include/clang/Lex/HeaderSearch.h b/include/clang/Lex/HeaderSearch.h
index f4b6876c72..84bb37da3a 100644
--- a/include/clang/Lex/HeaderSearch.h
+++ b/include/clang/Lex/HeaderSearch.h
@@ -154,9 +154,6 @@ class HeaderSearch {
llvm::StringMap<const DirectoryEntry *, llvm::BumpPtrAllocator>
FrameworkMap;
- llvm::StringMap<std::pair<StringRef, bool>, llvm::BumpPtrAllocator>
- IncludeAliasMap;
-
/// HeaderMaps - This is a mapping from FileEntry -> HeaderMap, uniquing
/// headermaps. This vector owns the headermap.
std::vector<std::pair<const FileEntry*, const HeaderMap*> > HeaderMaps;
@@ -220,25 +217,6 @@ public:
SystemDirIdx++;
}
- /// AddHeaderMapping -- Map the source include name to the dest include name
- void AddHeaderMapping(const StringRef& Source, const StringRef& Dest,
- bool IsAngled) {
- IncludeAliasMap[Source] = std::make_pair(Dest, IsAngled);
- }
-
- StringRef MapHeader(const StringRef& Source, bool isAngled) {
- // Do any filename replacements before anything else
- llvm::StringMap<std::pair<StringRef,bool> >::const_iterator iter =
- IncludeAliasMap.find(Source);
- if (iter != IncludeAliasMap.end()) {
- // If the angling matches, then we've found a replacement
- if (iter->second.second == isAngled) {
- return iter->second.first;
- }
- }
- return Source;
- }
-
/// \brief Set the path to the module cache.
void setModuleCachePath(StringRef CachePath) {
ModuleCachePath = CachePath;
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 9ee9e82529..feed6a8bfa 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -1262,7 +1262,6 @@ public:
void HandlePragmaMessage(Token &MessageTok);
void HandlePragmaPushMacro(Token &Tok);
void HandlePragmaPopMacro(Token &Tok);
- void HandlePragmaIncludeAlias(Token &Tok);
IdentifierInfo *ParsePragmaPushOrPopMacro(Token &Tok);
// Return true and store the first token only if any CommentHandler