diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 | 
| commit | eb11fae6d08f479c0799db45860a98af528fa6e7 (patch) | |
| tree | 44d492a50c8c1a7eb8e2d17ea3360ec4d066f042 /lib/IR/ValueSymbolTable.cpp | |
| parent | b8a2042aa938069e862750553db0e4d82d25822c (diff) | |
Notes
Diffstat (limited to 'lib/IR/ValueSymbolTable.cpp')
| -rw-r--r-- | lib/IR/ValueSymbolTable.cpp | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/IR/ValueSymbolTable.cpp b/lib/IR/ValueSymbolTable.cpp index 0da1990c3a3f8..0a7f2803cd4c4 100644 --- a/lib/IR/ValueSymbolTable.cpp +++ b/lib/IR/ValueSymbolTable.cpp @@ -14,6 +14,7 @@  #include "llvm/IR/ValueSymbolTable.h"  #include "llvm/ADT/SmallString.h"  #include "llvm/ADT/Triple.h" +#include "llvm/Config/llvm-config.h"  #include "llvm/IR/GlobalValue.h"  #include "llvm/IR/Module.h"  #include "llvm/IR/Type.h" @@ -74,7 +75,8 @@ void ValueSymbolTable::reinsertValue(Value* V) {    // Try inserting the name, assuming it won't conflict.    if (vmap.insert(V->getValueName())) { -    //DEBUG(dbgs() << " Inserted value: " << V->getValueName() << ": " << *V << "\n"); +    // LLVM_DEBUG(dbgs() << " Inserted value: " << V->getValueName() << ": " << +    // *V << "\n");      return;    } @@ -89,7 +91,7 @@ void ValueSymbolTable::reinsertValue(Value* V) {  }  void ValueSymbolTable::removeValueName(ValueName *V) { -  //DEBUG(dbgs() << " Removing Value: " << V->getKeyData() << "\n"); +  // LLVM_DEBUG(dbgs() << " Removing Value: " << V->getKeyData() << "\n");    // Remove the value from the symbol table.    vmap.remove(V);  } @@ -101,7 +103,7 @@ ValueName *ValueSymbolTable::createValueName(StringRef Name, Value *V) {    // In the common case, the name is not already in the symbol table.    auto IterBool = vmap.insert(std::make_pair(Name, V));    if (IterBool.second) { -    //DEBUG(dbgs() << " Inserted value: " << Entry.getKeyData() << ": " +    // LLVM_DEBUG(dbgs() << " Inserted value: " << Entry.getKeyData() << ": "      //           << *V << "\n");      return &*IterBool.first;    }  | 
