| 207 | cl::Hidden, cl::init(false)); |
| 208 | |
| 209 | static 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 | |
| 220 | namespace { |
| 221 |