diff options
Diffstat (limited to 'include/lld/Common/Reproduce.h')
| -rw-r--r-- | include/lld/Common/Reproduce.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/include/lld/Common/Reproduce.h b/include/lld/Common/Reproduce.h index 0f425de269c7f..734d9e4011d19 100644 --- a/include/lld/Common/Reproduce.h +++ b/include/lld/Common/Reproduce.h @@ -1,9 +1,8 @@ //===- Reproduce.h - Utilities for creating reproducers ---------*- C++ -*-===// // -// The LLVM Linker -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -23,17 +22,13 @@ namespace lld { // Makes a given pathname an absolute path first, and then remove // beginning /. For example, "../foo.o" is converted to "home/john/foo.o", // assuming that the current directory is "/home/john/bar". -std::string relativeToRoot(StringRef Path); +std::string relativeToRoot(StringRef path); // Quote a given string if it contains a space character. -std::string quote(StringRef S); - -// Rewrite the given path if a file exists with that pathname, otherwise -// returns the original path. -std::string rewritePath(StringRef S); +std::string quote(StringRef s); // Returns the string form of the given argument. -std::string toString(const llvm::opt::Arg &Arg); +std::string toString(const llvm::opt::Arg &arg); } #endif |
