aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-08 19:31:51 -0700
committeralon@honor <none@none>2010-10-08 19:31:51 -0700
commit8e37aa593df856af80c4186633084a2d01fc995a (patch)
tree018a98f0632a44ee2b391a884c0c59c03b0a9ba0 /src
parentefc63830c562beaf389642956c19b60c8d0cccdf (diff)
beginnings of fixes for clang 2.8
Diffstat (limited to 'src')
-rw-r--r--src/intertyper.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index 4eb09367..2514b6b9 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -3,7 +3,8 @@
function intertyper(data) {
// Substrate
- LLVM_STYLE = data.indexOf('<label>') == -1 ? 'old' : 'new'; // new = clang on 2.8, old = llvm-gcc anywhere or clang on 2.7
+ LLVM_STYLE = (data.indexOf('<label>') == -1 && data.indexOf('entry:') != -1) ? 'old' : 'new'; // new = clang on 2.8, old = llvm-gcc anywhere or clang on 2.7
+ dprint('LLVM_STYLE: ' + LLVM_STYLE);
substrate = new Substrate('Intertyper');
@@ -301,7 +302,7 @@ function intertyper(data) {
__result__: true,
intertype: 'label',
ident: '%entry',
- lineNum: item.lineNum + 'b',
+ lineNum: item.lineNum + '.5',
});
}
return ret;