X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdriver%2Fsplit%2Fghc-split.lprl;h=58c603ffa1f9c7238c43796bf60420a29e838d1e;hb=a248007e1e2f6b86bcbbca757a4c0e5bfa37690d;hp=195edf3512a47eee27c9ae06a36054f59e20e5fa;hpb=a8f00cda6b77735e90d282dd1bb0c70ed299fdc9;p=ghc-hetmet.git diff --git a/ghc/driver/split/ghc-split.lprl b/ghc/driver/split/ghc-split.lprl index 195edf3..58c603f 100644 --- a/ghc/driver/split/ghc-split.lprl +++ b/ghc/driver/split/ghc-split.lprl @@ -45,6 +45,11 @@ sub split_asm_file { # &tidy_up_and_die(1,"$Pgm: no split markers in .s file!\n") # if $prologue_stuff eq $s_stuff; + # about to use $Tmp_prefix in a regex - make sure backslashes don't get + # interpreted in a strange way. ToDo: what about other regex + # characters, eg. '.'? + $Tmp_prefix =~ s/\\/\\\\/g; + # lie about where this stuff came from $prologue_stuff =~ s|"${Tmp_prefix}\.c"|"$ifile_root\.hc"|g;