From 9ab1d8b5470cb53ce2071a228d0b30ec4f11f043 Mon Sep 17 00:00:00 2001 From: Tanigassalame <subashiny.tanigassalame@telecom-sudparis.eu> Date: Tue, 4 Jun 2019 17:19:03 +0200 Subject: [PATCH] removed pink as default annotation for struct --- lib/Transforms/Sgxpass/Sgxpass.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Sgxpass/Sgxpass.cpp b/lib/Transforms/Sgxpass/Sgxpass.cpp index f213484e238..1eb706efb6f 100644 --- a/lib/Transforms/Sgxpass/Sgxpass.cpp +++ b/lib/Transforms/Sgxpass/Sgxpass.cpp @@ -246,6 +246,7 @@ void Sgxpass::get_user(const Value* I, InstructionsColors& Insts, std::string co //treat function return; } + /* if(auto GI=dyn_cast<GetElementPtrInst>(U)){ if(auto source_type=dyn_cast<StructType>(GI->getSourceElementType())){ auto source_type_name=source_type->getStructName(); @@ -254,6 +255,7 @@ void Sgxpass::get_user(const Value* I, InstructionsColors& Insts, std::string co } } } + */ //If a global variable is modified then it is added to map with respective color bool result=true; if(auto SI=dyn_cast<StoreInst>(Inst)){ @@ -768,7 +770,7 @@ bool Sgxpass::runOnModule(Module &M) { //To filter all GetElementPtrInst and give them different treatement auto GI =dyn_cast<GetElementPtrInst>(&I); if (GI != nullptr) { - get_user_gep(GI, Insts); + //get_user_gep(GI, Insts); } // To filter all CallInst because annotation are represented like a function call in LLVM IR -- GitLab