projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix lines that exceed 80 columns. There is no change in functionality.
[oota-llvm.git]
/
lib
/
VMCore
/
ValueSymbolTable.cpp
diff --git
a/lib/VMCore/ValueSymbolTable.cpp
b/lib/VMCore/ValueSymbolTable.cpp
index d30a9d6e37b3921e05989d376ec8dcd326e3a69a..254bf06439d9b2b36f00a5e61583fe7d921f4af5 100644
(file)
--- a/
lib/VMCore/ValueSymbolTable.cpp
+++ b/
lib/VMCore/ValueSymbolTable.cpp
@@
-55,9
+55,7
@@
void ValueSymbolTable::reinsertValue(Value* V) {
raw_svector_ostream(UniqueName) << ++LastUnique;
// Try insert the vmap entry with this suffix.
raw_svector_ostream(UniqueName) << ++LastUnique;
// Try insert the vmap entry with this suffix.
- ValueName &NewName =
- vmap.GetOrCreateValue(StringRef(UniqueName.data(),
- UniqueName.size()));
+ ValueName &NewName = vmap.GetOrCreateValue(UniqueName);
if (NewName.getValue() == 0) {
// Newly inserted name. Success!
NewName.setValue(V);
if (NewName.getValue() == 0) {
// Newly inserted name. Success!
NewName.setValue(V);
@@
-88,7
+86,7
@@
ValueName *ValueSymbolTable::createValueName(StringRef Name, Value *V) {
}
// Otherwise, there is a naming conflict. Rename this value.
}
// Otherwise, there is a naming conflict. Rename this value.
- SmallString<
128
> UniqueName(Name.begin(), Name.end());
+ SmallString<
256
> UniqueName(Name.begin(), Name.end());
while (1) {
// Trim any suffix off and append the next number.
while (1) {
// Trim any suffix off and append the next number.
@@
-96,9
+94,7
@@
ValueName *ValueSymbolTable::createValueName(StringRef Name, Value *V) {
raw_svector_ostream(UniqueName) << ++LastUnique;
// Try insert the vmap entry with this suffix.
raw_svector_ostream(UniqueName) << ++LastUnique;
// Try insert the vmap entry with this suffix.
- ValueName &NewName =
- vmap.GetOrCreateValue(StringRef(UniqueName.data(),
- UniqueName.size()));
+ ValueName &NewName = vmap.GetOrCreateValue(UniqueName);
if (NewName.getValue() == 0) {
// Newly inserted name. Success!
NewName.setValue(V);
if (NewName.getValue() == 0) {
// Newly inserted name. Success!
NewName.setValue(V);
@@
-119,5
+115,3
@@
void ValueSymbolTable::dump() const {
//DEBUG(dbgs() << "\n");
}
}
//DEBUG(dbgs() << "\n");
}
}
-
-MDSymbolTable::~MDSymbolTable() { }