Introduce using to increase readibility

This commit introduces `using` statements and `constexpr` functions to
increase readibility of various types.
This commit is contained in:
Alessandro Di Federico
2018-04-23 08:51:49 +02:00
parent 34d216eb0a
commit 384c317ef1
25 changed files with 233 additions and 195 deletions
+5 -4
View File
@@ -21,10 +21,11 @@
using namespace llvm;
char GeneratedCodeBasicInfo::ID = 0;
static RegisterPass<GeneratedCodeBasicInfo> X("gcbi",
"Generated Code Basic Info",
true,
true);
using RegisterGCBI = RegisterPass<GeneratedCodeBasicInfo>;
static RegisterGCBI X("gcbi",
"Generated Code Basic Info",
true,
true);
bool GeneratedCodeBasicInfo::runOnFunction(llvm::Function &F) {
DBG("passes", { dbg << "Starting GeneratedCodeBasicInfo\n"; });