Kaleidoscope: Prune __attribute__((used)). Some compilers wouldn't accept one.
[oota-llvm.git] / examples / Kaleidoscope / Chapter6 / toy.cpp
index 9d9914a4b89aa9d342811582fdb547151e4881e4..8f802384d1df8841a3e04c0b3747a42d83117e44 100644 (file)
@@ -1023,13 +1023,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;
 }