[llvm] r331599 - Simplify LLVM_ATTRIBUTE_USED call sites.
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat May 5 13:14:38 PDT 2018
Author: maskray
Date: Sat May 5 13:14:38 2018
New Revision: 331599
URL: http://llvm.org/viewvc/llvm-project?rev=331599&view=rev
Log:
Simplify LLVM_ATTRIBUTE_USED call sites.
Modified:
llvm/trunk/lib/Support/Signals.cpp
llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp
Modified: llvm/trunk/lib/Support/Signals.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Signals.cpp?rev=331599&r1=331598&r2=331599&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Signals.cpp (original)
+++ llvm/trunk/lib/Support/Signals.cpp Sat May 5 13:14:38 2018
@@ -64,15 +64,10 @@ static FormattedNumber format_ptr(void *
return format_hex((uint64_t)PC, PtrWidth);
}
-static bool printSymbolizedStackTrace(StringRef Argv0,
- void **StackTrace, int Depth,
- llvm::raw_ostream &OS)
- LLVM_ATTRIBUTE_USED;
-
/// Helper that launches llvm-symbolizer and symbolizes a backtrace.
-static bool printSymbolizedStackTrace(StringRef Argv0,
- void **StackTrace, int Depth,
- llvm::raw_ostream &OS) {
+LLVM_ATTRIBUTE_USED
+static bool printSymbolizedStackTrace(StringRef Argv0, void **StackTrace,
+ int Depth, llvm::raw_ostream &OS) {
if (DisableSymbolication)
return false;
Modified: llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp?rev=331599&r1=331598&r2=331599&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp Sat May 5 13:14:38 2018
@@ -244,8 +244,8 @@ namespace {
const Value *V;
};
- raw_ostream &operator<< (raw_ostream &OS, const PE &P) LLVM_ATTRIBUTE_USED;
- raw_ostream &operator<< (raw_ostream &OS, const PE &P) {
+ LLVM_ATTRIBUTE_USED
+ raw_ostream &operator<<(raw_ostream &OS, const PE &P) {
P.C.print(OS, P.V ? P.V : P.C.Root);
return OS;
}
Modified: llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp?rev=331599&r1=331598&r2=331599&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LowerSwitch.cpp Sat May 5 13:14:38 2018
@@ -155,11 +155,8 @@ bool LowerSwitch::runOnFunction(Function
}
/// Used for debugging purposes.
-static raw_ostream& operator<<(raw_ostream &O,
- const LowerSwitch::CaseVector &C)
- LLVM_ATTRIBUTE_USED;
-
-static raw_ostream& operator<<(raw_ostream &O,
+LLVM_ATTRIBUTE_USED
+static raw_ostream &operator<<(raw_ostream &O,
const LowerSwitch::CaseVector &C) {
O << "[";
More information about the llvm-commits
mailing list