projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a comment about the requirement that the Windows.h header be last.
[oota-llvm.git]
/
lib
/
Support
/
StringPool.cpp
diff --git
a/lib/Support/StringPool.cpp
b/lib/Support/StringPool.cpp
index 6b34d2c4a01c9bdb2296ec6cb05822c65b855f2c..ff607cf8c4adddee0547868a6b03567febc77185 100644
(file)
--- a/
lib/Support/StringPool.cpp
+++ b/
lib/Support/StringPool.cpp
@@
-2,8
+2,8
@@
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
-// This file
was developed by Gordon Henriksen and is distributed under th
e
-//
University of Illinois Open Source
License. See LICENSE.TXT for details.
+// This file
is distributed under the University of Illinois Open Sourc
e
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
@@
-12,7
+12,7
@@
//===----------------------------------------------------------------------===//
#include "llvm/Support/StringPool.h"
//===----------------------------------------------------------------------===//
#include "llvm/Support/StringPool.h"
-#include "llvm/
Support/Streams
.h"
+#include "llvm/
ADT/StringRef
.h"
using namespace llvm;
using namespace llvm;
@@
-22,12
+22,12
@@
StringPool::~StringPool() {
assert(InternTable.empty() && "PooledStringPtr leaked!");
}
assert(InternTable.empty() && "PooledStringPtr leaked!");
}
-PooledStringPtr StringPool::intern(
const char *Begin, const char *End
) {
- table_t::iterator I = InternTable.find(
Begin, End
);
+PooledStringPtr StringPool::intern(
StringRef Key
) {
+ table_t::iterator I = InternTable.find(
Key
);
if (I != InternTable.end())
return PooledStringPtr(&*I);
if (I != InternTable.end())
return PooledStringPtr(&*I);
- entry_t *S = entry_t::Create(
Begin, End
);
+ entry_t *S = entry_t::Create(
Key.begin(), Key.end()
);
S->getValue().Pool = this;
InternTable.insert(S);
S->getValue().Pool = this;
InternTable.insert(S);