[flang] Remove hardcoded bits from AddDebugInfo. (#89231)
This PR adds following options to the AddDebugInfo pass. 1. IsOptimized flag. 2. Level of debug info to generate. 3. Name of the source file This enables us to remove the hard coded values from the code. It also allows us to test the pass with different options. The tests have been modified to take advantage of that. The calling convention flag and producer name have also been improved.
This commit is contained in:
@@ -809,7 +809,7 @@ void CodeGenAction::generateLLVMIR() {
|
||||
}
|
||||
|
||||
// Create the pass pipeline
|
||||
fir::createMLIRToLLVMPassPipeline(pm, config);
|
||||
fir::createMLIRToLLVMPassPipeline(pm, config, getCurrentFile());
|
||||
(void)mlir::applyPassManagerCLOptions(pm);
|
||||
|
||||
// run the pass manager
|
||||
|
||||
Reference in New Issue
Block a user