From ac9d37311698f5b5fa496c86d04216d91b05d768 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 28 Aug 2015 03:34:33 +0000 Subject: Kaleidoscope: Prune __attribute__((used)). Some compilers wouldn't accept one. llvm-svn: 246268 --- llvm/examples/Kaleidoscope/Chapter8/toy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/examples/Kaleidoscope/Chapter8/toy.cpp') diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp index 5f97a157336..b78d901db2d 100644 --- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp @@ -1383,13 +1383,13 @@ static void MainLoop() { //===----------------------------------------------------------------------===// /// putchard - putchar that takes a double and returns 0. -__attribute__((used)) extern "C" double putchard(double X) { +extern "C" double putchard(double X) { fputc((char)X, stderr); return 0; } /// printd - printf that takes a double prints it as "%f\n", returning 0. -__attribute__((used)) extern "C" double printd(double X) { +extern "C" double printd(double X) { fprintf(stderr, "%f\n", X); return 0; } -- cgit v1.2.3