fix a memory leak yjasskin pointed out: MCSymbol is bump pointer
authorChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2010 06:15:35 +0000 (06:15 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Mar 2010 06:15:35 +0000 (06:15 +0000)
commitc28cc093e3b5b8601cb5024a5365a6f31f49839a
tree00f05f95c95cfd6ee3616fd54f07b2c5eaf8ace7
parente002da34efeed0f1622c767b3ca1eeaa791124ed
fix a memory leak yjasskin pointed out: MCSymbol is bump pointer
allocated and thus not freed.  This is cool except that it contains
and std::string so the string data didn't get freed.  In any case
there is no reason to redundantly store the string data in the
MCSymbol anyway, just make the MCSymbol ref the string data in the
MCContext StringMap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98536 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCContext.h
include/llvm/MC/MCSymbol.h
lib/MC/MCContext.cpp