Skip to content

Commit

Permalink
Refuse to run llvm-mca with "Compile to binary object"
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon committed Mar 23, 2024
1 parent ab90b71 commit 2deb5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tooling/llvm-mca-tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class LLVMMcaTool extends BaseTool {
}

override async runTool(compilationInfo: Record<any, any>, inputFilepath?: string, args?: string[]) {
if (compilationInfo.filters.binary) {
if (compilationInfo.filters.binary || compilationInfo.filters.binaryObject) {
return this.createErrorResponse('<cannot run analysis on binary>');
}

Expand Down

0 comments on commit 2deb5f6

Please sign in to comment.