[CodeView] Allow variable names to be as long as the codeview format supports
authorBrock Wyma <brock.wyma@intel.com>
Sun, 11 Feb 2018 21:26:46 +0000 (21:26 +0000)
committerBrock Wyma <brock.wyma@intel.com>
Sun, 11 Feb 2018 21:26:46 +0000 (21:26 +0000)
commit19e17b3970a65b66c719567ade70a541166b1bca
tree27817d0bb0e75b2aa4cd888d2eb2f8edd887c706
parent9ead7bb3d401e55ae83e093c7df75019aca70fa5
[CodeView] Allow variable names to be as long as the codeview format supports

Instead of reserving 0xF00 bytes for the fixed length portion of the CodeView
symbol name, calculate the actual length of the fixed length portion.

Differential Revision: https://reviews.llvm.org/D42125

llvm-svn: 324850
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/test/DebugInfo/COFF/long-name.ll