Chromium Code Reviews| Index: src/IceInstrumentation.cpp |
| diff --git a/src/IceInstrumentation.cpp b/src/IceInstrumentation.cpp |
| index fc2a4a5431f454b2cc77fdba28e6fd1b05ad59ec..cfd243a8fc7d5eb23b31db5cd065bee80c74344a 100644 |
| --- a/src/IceInstrumentation.cpp |
| +++ b/src/IceInstrumentation.cpp |
| @@ -29,6 +29,9 @@ void Instrumentation::instrumentFunc(Cfg *Func) { |
| assert(Func); |
| assert(!Func->getNodes().empty()); |
| + // TODO(tlively): More selectively instrument functions so that shadow memory |
| + // represents user accessibility more and library accessibility less. |
| + std::string FuncName = Func->getFunctionName().toStringOrEmpty(); |
| LoweringContext Context; |
| Context.init(Func->getNodes().front()); |
| instrumentFuncStart(Context); |
| @@ -42,7 +45,7 @@ void Instrumentation::instrumentFunc(Cfg *Func) { |
| } |
| } |
| - if (Func->getFunctionName().toStringOrEmpty() == "_start") |
| + if (FuncName == "_start") |
|
Karl
2016/06/17 22:04:11
Move declaration of FuncName here.
tlively
2016/06/17 23:03:58
Done.
|
| instrumentStart(Func); |
| } |