This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Cleanup of scanVersionScript(): do not change local Demangled variable.
ClosedPublic

Authored by grimar on Aug 23 2016, 2:19 AM.

Details

Summary

Previously if we had version script like

LIBSAMPLE_2.0 {

global:             
  extern "C++" { 
   bar;    
};

Demangled local variable was changed because std::map operator[] added
new element if there was no such key found.
That was confusing to see and unclean to have, patch fixes that.

Diff Detail

Event Timeline

grimar updated this revision to Diff 68959.Aug 23 2016, 2:19 AM
grimar retitled this revision from to [ELF] - Cleanup of scanVersionScript(): do not change local Demangled variable..
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
grimar updated this revision to Diff 69217.Aug 25 2016, 2:37 AM
grimar updated this object.
  • Do not make Demangled to be const (that reduces amount of changes). Since main aim of the patch is stop

modifying Demangled for correctness of futher patches, this change is itself enough.

grimar accepted this revision.Aug 30 2016, 2:38 AM
grimar added a reviewer: grimar.

D23794 has LGTM, it contains all changes from this patch. This one commited separatelly as r280066.

This revision is now accepted and ready to land.Aug 30 2016, 2:38 AM
grimar closed this revision.Aug 30 2016, 2:38 AM