summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-09-15 05:42:39 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-09-15 05:42:39 +0000
commite7b38cdc00e8824c37ce2b41f00d6394fef700a7 (patch)
tree1eb15601c769f42be48804478de976908c57f2cf /llvm/lib/Support/Path.cpp
parent908c8b37c2be23f86fb6d13aeb59598e302eb5b3 (diff)
downloadbcm5719-llvm-e7b38cdc00e8824c37ce2b41f00d6394fef700a7.tar.gz
bcm5719-llvm-e7b38cdc00e8824c37ce2b41f00d6394fef700a7.zip
typeinfo: provide a partial implementation for Win32
The RTTI structure is different on Windows when building under MS ABI. Update the definition to reflect this. The structure itself contains an area for caching the undecorated name (which is 0-initialized). The decorated name has a bitfield followed by the linkage name. When std::type_info::name is invoked for the first time, the runtime should undecorate the name, cache it, and return the undecorated name. This requires access to an implementation of __unDName. For now, return the raw name. This uses the fnv-1a hash to hash the name of the RTTI. We could use an alternate hash (murmur? city?), but, this was the quickest to throw together. llvm-svn: 313344
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud