aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);