Skip to content

Commit 6dcba49

Browse files
committed
clang-format
1 parent 0486684 commit 6dcba49

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

llvm/include/llvm/Transforms/Utils/DebugSSAUpdater.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,15 @@ class SSAValueNameMap {
315315
struct Config : ValueMapConfig<Value *> {
316316
enum { FollowRAUW = false };
317317
};
318+
318319
public:
319320
using ValueID = uint64_t;
320321
ValueID addValue(Value *V);
321-
std::string getName(ValueID ID) {
322-
return ValueIDToNameMap[ID];
323-
}
322+
std::string getName(ValueID ID) { return ValueIDToNameMap[ID]; }
323+
324324
private:
325325
DenseMap<ValueID, std::string> ValueIDToNameMap;
326-
ValueMap<Value*, ValueID, Config> ValueToIDMap;
326+
ValueMap<Value *, ValueID, Config> ValueToIDMap;
327327
ValueID NextID = 0;
328328
};
329329

llvm/lib/Transforms/Utils/DebugSSAUpdater.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ using AvailableValsTy = DenseMap<DbgSSABlock *, DbgValueDef>;
4545
DebugSSAUpdater::DebugSSAUpdater(SmallVectorImpl<DbgSSAPhi *> *NewPHI)
4646
: InsertedPHIs(NewPHI) {}
4747

48-
void DebugSSAUpdater::initialize() {
49-
AV.clear();
50-
}
48+
void DebugSSAUpdater::initialize() { AV.clear(); }
5149

5250
bool DebugSSAUpdater::hasValueForBlock(DbgSSABlock *BB) const {
5351
return AV.count(BB);
@@ -383,7 +381,8 @@ SSAValueNameMap::ValueID SSAValueNameMap::addValue(Value *V) {
383381
ValueID NewID = NextID++;
384382
ValueToIDMap.insert({V, NewID});
385383
// Then, get the name string for V and map NewID to it.
386-
assert(!ValueIDToNameMap.contains(NewID) && "New value ID already maps to a name?");
384+
assert(!ValueIDToNameMap.contains(NewID) &&
385+
"New value ID already maps to a name?");
387386
std::string &ValueText = ValueIDToNameMap[NewID];
388387
raw_string_ostream Stream(ValueText);
389388
V->printAsOperand(Stream, true);

0 commit comments

Comments
 (0)