1*fe6060f1SDimitry Andric //===-- HelloWorld.cpp - Example Transformations --------------------------===// 2*fe6060f1SDimitry Andric // 3*fe6060f1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*fe6060f1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*fe6060f1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*fe6060f1SDimitry Andric // 7*fe6060f1SDimitry Andric //===----------------------------------------------------------------------===// 8*fe6060f1SDimitry Andric 9*fe6060f1SDimitry Andric #include "llvm/Transforms/Utils/HelloWorld.h" 10*fe6060f1SDimitry Andric 11*fe6060f1SDimitry Andric using namespace llvm; 12*fe6060f1SDimitry Andric run(Function & F,FunctionAnalysisManager & AM)13*fe6060f1SDimitry AndricPreservedAnalyses HelloWorldPass::run(Function &F, 14*fe6060f1SDimitry Andric FunctionAnalysisManager &AM) { 15*fe6060f1SDimitry Andric errs() << F.getName() << "\n"; 16*fe6060f1SDimitry Andric return PreservedAnalyses::all(); 17*fe6060f1SDimitry Andric } 18