From 3f40f09b989e05eab717ac3d9735a4ce5ad605cf Mon Sep 17 00:00:00 2001 From: "Ian A. Mason" Date: Wed, 28 Jun 2017 06:35:52 -0700 Subject: [PATCH] all 'gow' are now 'g', maybe. --- compiler.go | 2 +- extractor.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler.go b/compiler.go index 92d6769..6f8b955 100644 --- a/compiler.go +++ b/compiler.go @@ -96,7 +96,7 @@ func attachBitcodePathToObject(bcFile, objFile string) { // Store bitcode path to temp file var absBcPath, _ = filepath.Abs(bcFile) tmpContent := []byte(absBcPath+"\n") - tmpFile, err := ioutil.TempFile("", "gowllvm") + tmpFile, err := ioutil.TempFile("", "gllvm") if err != nil { log.Fatal(err) } diff --git a/extractor.go b/extractor.go index 9230bfc..081bab6 100644 --- a/extractor.go +++ b/extractor.go @@ -167,7 +167,7 @@ func handleArchive(ea ExtractingArgs) { var artifactFiles []string // Create tmp dir - tmpDirName, err := ioutil.TempDir("", "gowllvm") + tmpDirName, err := ioutil.TempDir("", "gllvm") if err != nil { log.Fatal("The temporary directory in which to extract object files could not be created.") } @@ -251,7 +251,7 @@ func extractSectionDarwin(inputFile string) (contents string) { cmd := exec.Command("otool", "-X", "-s", DARWIN_SEGMENT_NAME, DARWIN_SECTION_NAME, inputFile) out, err := cmd.Output() if err != nil { - log.Fatal("There was an error extracting the Gowllvm section from ", inputFile, ". Make sure that the 'otool' command is installed.") + log.Fatal("There was an error extracting the gllvm section from ", inputFile, ". Make sure that the 'otool' command is installed.") } sectionLines := strings.Split(string(out), "\n") regExp := regexp.MustCompile(`^(?:[0-9a-f]{8,16}\t)?([0-9a-f\s]+)$`)