aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy <51220084+jeremy-rifkin@users.noreply.github.com>2023-06-11 16:41:05 -0400
committerJeremy <51220084+jeremy-rifkin@users.noreply.github.com>2023-06-11 16:41:05 -0400
commit12e9397f78507792c6c856f3d5173b142db36f91 (patch)
treeabb698d140e650d8fdaf442282a3862056610e72
parent5049b29c21bcdffefe1c9bcd5a7dc4dd79b9c5e8 (diff)
downloadcompiler-explorer-gh-7663.tar.gz
compiler-explorer-gh-7663.zip
Undo bad ideagh-7663
-rw-r--r--lib/llvm-ir.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/llvm-ir.ts b/lib/llvm-ir.ts
index d8ff490f1..5bdf7e651 100644
--- a/lib/llvm-ir.ts
+++ b/lib/llvm-ir.ts
@@ -45,7 +45,6 @@ export class LlvmIrParser {
private metaNodeOptionsRe: RegExp;
private llvmDebugLine: RegExp;
private llvmDebugAnnotation: RegExp;
- private commentOnly: RegExp;
private attributeAnnotation: RegExp;
private attributeDirective: RegExp;
private moduleMetadata: RegExp;
@@ -71,8 +70,6 @@ export class LlvmIrParser {
this.attributeDirective = /^attributes #\d+ = { .+ }$/;
this.functionAttrs = /^; Function Attrs: .+$/;
this.moduleMetadata = /^((source_filename|target datalayout|target triple) = ".+"|; ModuleID = '.+')$/;
-
- this.commentOnly = /^\s*(;.*)$/;
}
getFileName(debugInfo, scope): string | null {
@@ -211,13 +208,7 @@ export class LlvmIrParser {
// Filtering a full line
if (filters.some(re => line.match(re))) {
- if (!options.filterDebugInfo) {
- if (!line.includes('!DI')) {
- continue;
- }
- } else {
- continue;
- }
+ continue;
}
result.push(resultLine);