]> granicus.if.org Git - clang/commit
Move the calling of emitTargetMD() later.
authorRobert Lytton <robert@xmos.com>
Thu, 3 Jul 2014 09:30:33 +0000 (09:30 +0000)
committerRobert Lytton <robert@xmos.com>
Thu, 3 Jul 2014 09:30:33 +0000 (09:30 +0000)
commit1b4002a721344b4dcfd2eade2d118e16a8f0d8de
tree9294b062a160759d9516fc8a3dba13d4d9a454ac
parent59a30558dea07e38c5389d5640abc2352ae07c14
Move the calling of emitTargetMD() later.

Summary:
Because a global created by GetOrCreateLLVMGlobal() is not finalised until later viz:
  extern char a[];
  char f(){ return a[5];}
  char a[10];

Change MangledDeclNames to use a MapVector rather than a DenseMap so that the
Metadata is output in order of original declaration, so to make deterministic
and improve human readablity.

Differential Revision: http://reviews.llvm.org/D4176

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212263 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGen/xcore-stringtype.c