Kaleidoscope: Prune __attribute__((used)). Some compilers wouldn't accept one.
[oota-llvm.git] / examples / Kaleidoscope / Chapter5 / toy.cpp
index 4658edcd4cec16a5b8d6e5cb12c569bd53d5a593..29db71c20a8143f88a23562704bf2d9af1404d6e 100644 (file)
@@ -905,13 +905,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;
 }