Skip to content

Commit 181c175

Browse files
committed
clang-format
1 parent 943ba68 commit 181c175

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libclc/utils/libclc-remangler/LibclcRemangler.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
#include "llvm/Support/Signals.h"
5959
#include "llvm/Support/ToolOutputFile.h"
6060
#include "llvm/Support/raw_ostream.h"
61-
#include "llvm/Transforms/Utils/ValueMapper.h"
6261
#include "llvm/Transforms/Utils/Cloning.h"
62+
#include "llvm/Transforms/Utils/ValueMapper.h"
6363

6464
#include <iostream>
6565
#include <memory>
@@ -155,7 +155,7 @@ class DefaultAllocator {
155155
public:
156156
void reset() { Alloc.reset(); }
157157

158-
template <typename T, typename... Args> T *makeNode(Args &&... args) {
158+
template <typename T, typename... Args> T *makeNode(Args &&...args) {
159159
return new (Alloc.allocate(sizeof(T))) T(std::forward<Args>(args)...);
160160
}
161161

@@ -578,9 +578,9 @@ bool createCloneFromMap(
578578
}
579579

580580
bool createClones(Module *M, std::string originalMangledName,
581-
std::string remangledName,
582-
const itanium_demangle::Node *functionTree,
583-
TargetTypeReplacements replacements) {
581+
std::string remangledName,
582+
const itanium_demangle::Node *functionTree,
583+
TargetTypeReplacements replacements) {
584584
// create clone of original function
585585
if (!createCloneFromMap(M, originalMangledName, functionTree,
586586
replacements.getCloneTypeReplacements(),
@@ -628,7 +628,7 @@ bool remangleFunction(Function &func, Module *M,
628628
// Make a clone of a suitable function using the old name if there is a
629629
// type-mapping and the corresponding clonee function exists.
630630
if (!createClones(M, MangledName, RemangledName, FunctionTree,
631-
replacements))
631+
replacements))
632632
return false;
633633
}
634634

@@ -670,7 +670,7 @@ int main(int argc, const char **argv) {
670670
FuncList.push_back(&Func);
671671

672672
bool Success = true;
673-
for (auto Func : FuncList){
673+
for (auto Func : FuncList) {
674674
Success = remangleFunction(*Func, M.get(), Replacements) && Success;
675675
}
676676
// Only fail after all to give as much context as possible.

0 commit comments

Comments
 (0)