|
|
Subzero: Fix symbol name mangling. Make flags global.
This cleans up the whole --prefix handling mechanism, so that all mangling is done based on logic in the parser instead of scattered all over the code base. Another nice side effect is that it allows some getName() style functions to return a const string reference instead of a string copy.
Also, moves ClFlags into a static field of GlobalContext, i.e. makes it global, so that these constant flags can be accessed without having to plumb a GlobalContext object. Note that some of the ClFlags and ClFlagsExtra plumbing in the compile server classes could be simplified to directly use the corresponding static fields, but this is left mostly as is for now, for when we do a proper separation between core and supplemental flags.
BUG= none
R=jpp@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=98ba00666271be1bdcd45b72b3dec04419efe61b
Total comments: 23
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+455 lines, -452 lines) |
Patch |
 |
M |
Makefile.standalone
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/IceAssemblerARM32.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/IceBrowserCompileServer.h
|
View
|
1
2
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/IceBrowserCompileServer.cpp
|
View
|
1
2
|
2 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
 |
M |
src/IceCfg.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/IceCfg.cpp
|
View
|
|
5 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/IceCfgNode.cpp
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
src/IceClFlags.h
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/IceCompileServer.cpp
|
View
|
1
|
6 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
 |
M |
src/IceConverter.cpp
|
View
|
1
2
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
src/IceELFObjectWriter.cpp
|
View
|
|
9 chunks |
+12 lines, -18 lines |
0 comments
|
Download
|
 |
M |
src/IceELFSection.h
|
View
|
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/IceFixups.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/IceFixups.cpp
|
View
|
|
3 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
 |
M |
src/IceGlobalContext.h
|
View
|
1
2
|
7 chunks |
+8 lines, -18 lines |
0 comments
|
Download
|
 |
M |
src/IceGlobalContext.cpp
|
View
|
1
2
|
10 chunks |
+17 lines, -184 lines |
0 comments
|
Download
|
 |
M |
src/IceGlobalInits.h
|
View
|
1
2
|
14 chunks |
+42 lines, -42 lines |
0 comments
|
Download
|
 |
M |
src/IceGlobalInits.cpp
|
View
|
|
7 chunks |
+9 lines, -20 lines |
0 comments
|
Download
|
 |
M |
src/IceInstARM32.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/IceInstMIPS32.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/IceIntrinsics.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
src/IceMangling.h
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
src/IceMangling.cpp
|
View
|
1
2
|
1 chunk |
+193 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/IceOperand.h
|
View
|
1
2
|
9 chunks |
+13 lines, -19 lines |
0 comments
|
Download
|
 |
M |
src/IceOperand.cpp
|
View
|
|
1 chunk |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
src/IceTargetLowering.cpp
|
View
|
|
7 chunks |
+13 lines, -18 lines |
0 comments
|
Download
|
 |
M |
src/IceTargetLoweringARM32.h
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/IceTargetLoweringARM32.cpp
|
View
|
1
|
7 chunks |
+12 lines, -15 lines |
0 comments
|
Download
|
 |
M |
src/IceTargetLoweringX8632.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/IceTargetLoweringX8664.cpp
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
src/IceTargetLoweringX86BaseImpl.h
|
View
|
|
10 chunks |
+16 lines, -24 lines |
0 comments
|
Download
|
 |
M |
src/PNaClTranslator.cpp
|
View
|
|
3 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
 |
M |
unittest/BitcodeMunge.h
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
unittest/BitcodeMunge.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 10 (5 generated)
|