MCPcopy Create free account
hub / github.com/R-Fuzz/symsan / getGlobalTypeString

Function getGlobalTypeString

instrumentation/TaintPass.cpp:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 cl::Hidden, cl::init(false));
208
209static StringRef getGlobalTypeString(const GlobalValue &G) {
210 // Types of GlobalVariables are always pointer types.
211 Type *GType = G.getValueType();
212 // For now we support excluding struct types only.
213 if (StructType *SGType = dyn_cast<StructType>(GType)) {
214 if (!SGType->isLiteral())
215 return SGType->getName();
216 }
217 return "<unknown type>";
218}
219
220namespace {
221

Callers 1

isInMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected