|
58 | 58 | #include "llvm/Support/Signals.h"
|
59 | 59 | #include "llvm/Support/ToolOutputFile.h"
|
60 | 60 | #include "llvm/Support/raw_ostream.h"
|
61 |
| -#include "llvm/Transforms/Utils/ValueMapper.h" |
62 | 61 | #include "llvm/Transforms/Utils/Cloning.h"
|
| 62 | +#include "llvm/Transforms/Utils/ValueMapper.h" |
63 | 63 |
|
64 | 64 | #include <iostream>
|
65 | 65 | #include <memory>
|
@@ -155,7 +155,7 @@ class DefaultAllocator {
|
155 | 155 | public:
|
156 | 156 | void reset() { Alloc.reset(); }
|
157 | 157 |
|
158 |
| - template <typename T, typename... Args> T *makeNode(Args &&... args) { |
| 158 | + template <typename T, typename... Args> T *makeNode(Args &&...args) { |
159 | 159 | return new (Alloc.allocate(sizeof(T))) T(std::forward<Args>(args)...);
|
160 | 160 | }
|
161 | 161 |
|
@@ -578,9 +578,9 @@ bool createCloneFromMap(
|
578 | 578 | }
|
579 | 579 |
|
580 | 580 | 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) { |
584 | 584 | // create clone of original function
|
585 | 585 | if (!createCloneFromMap(M, originalMangledName, functionTree,
|
586 | 586 | replacements.getCloneTypeReplacements(),
|
@@ -628,7 +628,7 @@ bool remangleFunction(Function &func, Module *M,
|
628 | 628 | // Make a clone of a suitable function using the old name if there is a
|
629 | 629 | // type-mapping and the corresponding clonee function exists.
|
630 | 630 | if (!createClones(M, MangledName, RemangledName, FunctionTree,
|
631 |
| - replacements)) |
| 631 | + replacements)) |
632 | 632 | return false;
|
633 | 633 | }
|
634 | 634 |
|
@@ -670,7 +670,7 @@ int main(int argc, const char **argv) {
|
670 | 670 | FuncList.push_back(&Func);
|
671 | 671 |
|
672 | 672 | bool Success = true;
|
673 |
| - for (auto Func : FuncList){ |
| 673 | + for (auto Func : FuncList) { |
674 | 674 | Success = remangleFunction(*Func, M.get(), Replacements) && Success;
|
675 | 675 | }
|
676 | 676 | // Only fail after all to give as much context as possible.
|
|
0 commit comments